Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #42135

Re: Help printing the integers of a longer number

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 <joel.goldstick@gmail.com>
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&gt;': 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 <joel.goldstick@gmail.com>
To khaosyt@gmail.com
Content-Type multipart/alternative; boundary=bcaec519644baaa05104d8fd3e61
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3878.1364482145.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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.  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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Help printing the integers of a longer number khaosyt@gmail.com - 2013-03-28 07:39 -0700
  Re: Help printing the integers of a longer number Chris Angelico <rosuav@gmail.com> - 2013-03-29 01:48 +1100
  Re: Help printing the integers of a longer number Joel Goldstick <joel.goldstick@gmail.com> - 2013-03-28 10:48 -0400
  Re: Help printing the integers of a longer number Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-03-28 19:03 +0200
    Re: Help printing the integers of a longer number Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-03-28 19:11 +0200
      Re: Help printing the integers of a longer number Chris Angelico <rosuav@gmail.com> - 2013-03-29 04:19 +1100
    Re: Help printing the integers of a longer number Chris Angelico <rosuav@gmail.com> - 2013-03-29 04:17 +1100

csiph-web