how to improve this simple block of code

hanz hanzspam at yahoo.com.au
Wed Jan 11 15:16:11 CET 2006


Or combined:

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




More information about the Python-list mailing list