How to print a number as if in the python interpreter?

me me at joshmk.com
Sun Sep 2 15:48:08 EDT 2012


Use repr()

print(repr(sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1])))




More information about the Python-list mailing list