In message <6819f2f8-7a9e-4ea4-a936-c4e00394b...@g28g2000yqh.googlegroups.com>, vsoler wrote:
> I'm trying to print .7 as 70%
Just to be perverse:
(lambda x : (lambda s : s[:s.index(".")] + s[s.index(".") + 1:] +
"%")("%.2f" % x).lstrip("0"))(.7)
:)
--
http://mail.python.org/mailman/listinfo/python-list
