formatting a number as percentage

vsoler vicente.soler at gmail.com
Sun Feb 21 18:53:45 CET 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