Data Types in Python
Jason Myers
Instructor
int(123456789123456789)
123456789123456789
float(123456789123456789)
1.2345678912345678e+17
from decimal import Decimal
Decimal('123456789123456789')
Decimal('123456789123456789')
print(0.00001)
1e-05
print(f"{0.00001:f}")
0.000010
print(f"{0.0000001:f}")
0.000000
print(f"{0.0000001:.7f}")
0.0000001
4/2
2.0
4//2
2
7//3
2
Data Types in Python