Float

 

Float refers to numbers that have decimal parts, such as 1.234, -0.023, 12.01.

 

To declare a float in Python, we write variableName = initial value

 

Example:

userHeight = 1.82, userWeight = 67.2