>>> print('%.0f%%' % (0.7*100))
70%

On Sun, Feb 21, 2010 at 12:53 PM, vsoler <vicente.so...@gmail.com> wrote:

> 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
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to