In [1]:
Copied!
print(type(1))
print(type(1))
<class 'int'>
Even negative whole numbers are considered
int
.
In [2]:
Copied!
print(type(-5))
print(type(-5))
<class 'int'>
We can also do
arithmetic
with
int
.
In [3]:
Copied!
output = 5 + 5
print(output)
print(type(output))
output = 5 + 5
print(output)
print(type(output))
10 <class 'int'>