how to improve this simple block of code

hanz hanzspam at yahoo.com.au
Wed Jan 11 09:16:11 EST 2006


Or combined:

x = x.rstrip('0.') # removes trailing zeroes and dots




More information about the Python-list mailing list