[Tutor] (no subject)
Alan Gauld
alan.gauld at btinternet.com
Tue Mar 17 21:44:28 CET 2009
"Jared White" <dukelx2005 at gmail.com> wrote
> howmany = int(raw_input('How many lines '))
> rhowmany = howmany
what does rhowmany do?
> strout = '*'
> while howmany > 0:
> print strout
> strout += '*'
> howmany -= 1
>
Combine the two hints so far to improve it, then look
even more closely at range() to see how to do the
decreasing lengths.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list