python2 float[0, 1] code example Example: float python 3 float(x) #5 as a float would have to be writen as float(5.0)