Help printing the integers of a longer number

Joel Goldstick joel.goldstick at gmail.com
Thu Mar 28 10:48:16 EDT 2013


On Thu, Mar 28, 2013 at 10:39 AM, <khaosyt at gmail.com> wrote:

> I want to print the individual numbers of a large number using division
> and modulus division.
>
> For example:
>
> Enter a positive integer: 54321
> 5
> 4
> 3
> 2
> 1
>
>
This looks familiar.  Make the integer a string and use a for loop to
iterate over each item

> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Joel Goldstick
http://joelgoldstick.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130328/e1638fb8/attachment.html>


More information about the Python-list mailing list