On Jun 3, 5:23 pm, Shihpin <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there a fuction that reverse the digits of a number? > > Many thanks, > > Shihpin Lin
One can use int, str and a slice: print int(str(40286)[::-1]) -- Hope this helps, Steven -- http://mail.python.org/mailman/listinfo/python-list