Python float
a = 1
b = 3.7
c = .5
print(a) # 1
print(type(a)) # <class 'int'>
print(b) # 3.7
print(type(b)) # <class 'float'>
print(c) # 0.5
print(type(c)) # <class 'float'>
1
is not float and .5
is 0.5
.
a = 1
b = 3.7
c = .5
print(a) # 1
print(type(a)) # <class 'int'>
print(b) # 3.7
print(type(b)) # <class 'float'>
print(c) # 0.5
print(type(c)) # <class 'float'>
1
is not float and .5
is 0.5
.
Calculator
Chart
Tools
Statistics
Articles