Quick actions

cmd+k|ctrl+k

Navigation

Languages

data types

Snippet info

Language

Python

Visibility

public

Author

dylansiegelman

Created

2024-03-30T21:35:35.17864Z

Updated

2024-03-30T21:35:47.99908Z

#FundamenalData Types
int 
float
bool
str
list
tuple
set
dict

#classes -> custom types

#Specialized Data Types
#Modules

#None  idea of zero, absence of value

#int and float examples
print(3 + 3)
print(type(3 + 3))
print(type(-3 * 1200))
print(type(1 / 1000))
print(2 ** 9)
print(5 // 4)

print(9 % 2) #% is modulo. modulo shows the remainer of the division


#math functions
print(round(1.6))
print(abs(-20)) #no negatives in abs
INFO