formatting a number as percentage

vsoler vicente.soler at gmail.com
Sun Feb 21 12:53:45 EST 2010


I'm trying to print .7 as 70%
I've tried:

print format(.7,'%%')
.7.format('%%')

but neither works. I don't know what the syntax is...

Can you help?

Thank you



More information about the Python-list mailing list