Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'example:': 0.03; 'string': 0.09; 'iterate': 0.09; 'subject:number': 0.09; 'cc:addr:python- list': 0.11; 'subject:Help': 0.11; 'division.': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'integer': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'division': 0.31; 'url:python': 0.33; 'subject:the': 0.34; 'received:209.85': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'positive': 0.37; 'received:209': 0.37; 'url:mail': 0.40; 'numbers': 0.61; 'to:addr:gmail.com': 0.65; 'mar': 0.68; 'subject:printing': 0.84; 'joel': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=jJfuPnqSSGUtj+cFSZyrzCSCakDIHfKNYPl7sQIpggs=; b=b9W3SDTpR+nCSQWfMKR0JiGSvnZ0L8z5HODF32K9gO1+jaYd0qXJ/USw0L3nl49imn 1AlEDpUxIzXOzWdOqrZ1oh6cL6mH5CKneWsxzTEV6e/d5GApsQB7Mi1VvERcRkdMWL3L fjozhkmmrXEvgK9YLzl3CbKanX19R0x2OoZCQwmTlXkyEIuLrUsiUe3CrjddGNwwzLpB bNjSTVXyFXA3SxePeK1jqtCqi/7xIYB6UgZm4W5bB0xN+O3Uu3+tDw5Hr09A8OwX0xul PQlUBNbshq8vvEFwUxPLvKYElCH/YY1K1Y02QNkmBKgAaMjXgXxLuRhH22382LvwuIBJ Pf5Q== MIME-Version: 1.0 X-Received: by 10.52.178.161 with SMTP id cz1mr22826149vdc.7.1364482096535; Thu, 28 Mar 2013 07:48:16 -0700 (PDT) In-Reply-To: <7764e61c-e4cc-413a-a76d-2d37f39abc61@googlegroups.com> References: <7764e61c-e4cc-413a-a76d-2d37f39abc61@googlegroups.com> Date: Thu, 28 Mar 2013 10:48:16 -0400 Subject: Re: Help printing the integers of a longer number From: Joel Goldstick To: khaosyt@gmail.com Content-Type: multipart/alternative; boundary=bcaec519644baaa05104d8fd3e61 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 66 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364482145 news.xs4all.nl 6900 [2001:888:2000:d::a6]:37810 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42135 --bcaec519644baaa05104d8fd3e61 Content-Type: text/plain; charset=UTF-8 On Thu, Mar 28, 2013 at 10:39 AM, 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 --bcaec519644baaa05104d8fd3e61 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Thu, Mar 28, 2013 at 10:39 AM, <khaosyt@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.=C2=A0 Make the integer a string= and use a for loop to iterate over each item
--
http://mail.python.org/mailman/listinfo/python-list



--
--bcaec519644baaa05104d8fd3e61--