Python Int
Int
Int, or integer, is a whole number, positive or negative, without decimals, of unlimited length.
Example
Integers:
x = 1
y = 35656222554887711
z =
-3255522
print(type(x))
print(type(y))
print(type(z))
Try it Yourself »
Int, or integer, is a whole number, positive or negative, without decimals, of unlimited length.
Integers:
x = 1
y = 35656222554887711
z =
-3255522
print(type(x))
print(type(y))
print(type(z))
Try it Yourself »
If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com
If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com