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


Groups > comp.lang.python > #39939

nested loops

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 <tampucciolina@libero.it>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.314
X-Spam-Level ***
X-Spam-Evidence '*H*': 0.61; '*S*': 0.24; 'received:192.168.1.101': 0.09; "'))": 0.16; '-1):': 0.16; 'result:': 0.16; 'row': 0.16; 'everyone,': 0.17; 'import': 0.21; 'header:User-Agent:1': 0.26; 'charset:iso-8859-15': 0.26; 'print': 0.32; 'to:addr:python-list': 0.33; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'beside': 0.84; 'blast': 0.84; 'off!': 0.84; 'received:212.52.84': 0.84; 'received:libero.it': 0.84; 'stars': 0.84; 'received:212.52': 0.91
X-CTCH-Spam Unknown
X-CTCH-RefID str=0001.0A0C0201.512BE9C3.0063,ss=1,re=0.000,fgs=0
X-libjamoibt 1823
Date Mon, 25 Feb 2013 23:46:11 +0100
From leonardo <tampucciolina@libero.it>
User-Agent Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130215 Thunderbird/17.0.3
MIME-Version 1.0
To python-list@python.org
Subject nested loops
Content-Type text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding 7bit
X-Mailman-Approved-At Tue, 26 Feb 2013 10:45:50 +0100
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.2537.1361871951.2939.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361871951 news.xs4all.nl 6969 [2001:888:2000:d::a6]:43093
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:39939

Show key headers only | View raw


hi everyone,

i have the following program:

import time
count_timer = int(raw_input('how many seconds?: '))
for i in range(count_timer, 0, -1):
     print i
     time.sleep(1)
print 'blast off!'


this is the result:

how many seconds?: 5
5
4
3
2
1
blast off!

how can i have it print  a row of stars beside each number, like this?:

how many seconds?: 5
5 * * * * *
4 * * * *
3 * * *
2 * *
1 *
blast off!

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


Thread

nested loops leonardo <tampucciolina@libero.it> - 2013-02-25 23:46 +0100
  Re: nested loops Alister <alister.ware@ntlworld.com> - 2013-02-26 14:36 +0000
  Re: nested loops Anssi Saari <as@sci.fi> - 2013-02-26 21:39 +0200
    Re: nested loops "K. Elo" <maillists@nic.fi> - 2013-02-27 09:02 +0200

csiph-web