how to make float a percentage in python code example Example: float to percentage python print "{0:.0%}".format(1./3) # OUTPUT 33%