float number in python code example Example: float python 3 float(x) #5 as a float would have to be writen as float(5.0)