how to improve this simple block of code

py codecraig at gmail.com
Wed Jan 11 09:19:09 EST 2006


hanz wrote:
> x = x.rstrip('0.') # removes trailing zeroes and dots

knew there had to be a way, thanks.




More information about the Python-list mailing list