Integer and float variables
Integer refers to an integer number.For example:
my_inte= 3
Float refers to a decimal number, such as:
my_flo= 3.2
You can use the commands float()
and int()
to change from onte type to another:
>>> float (8)
8.0
>>> int(9.5)
9
>>>