Numbers in Python
In Python, numbers can be represented in many ways and Python provides different types for working with these numbers. The primary numeric types in Python include:
The int data type is a numeric type without fractional point.
x = 100 print(x)
The float data type is a numeric type with fraction point.
x = 100.70 y = 53e43 print(x) print(y)
The complex data type is a numeric type with real and imaginary components denoted by j character.
z = 7j print(z)