example: 40286 -> 68204
Yongjian Xu
jimxu at google.com
Sun Jun 3 20:35:04 EDT 2007
Don't think there is one in builtin for that and might have to convert str
<-> int to do that too, such as int(str(i)[::-1]) ...
Jim
On 6/3/07, Shihpin <Shihpin.Lin at gmail.com> wrote:
>
> Hi all,
>
> Is there a fuction that reverse the digits of a number?
>
> Many thanks,
>
> Shihpin Lin
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070603/df68eba1/attachment.html>
More information about the Python-list
mailing list