[Tutor] (no subject)
Alan Gauld
alan.gauld at btinternet.com
Tue Mar 24 13:46:20 CET 2009
"Daniele" <d.conca at gmail.com> wrote
>>> ********* I cant get a code to work for this bottom half, Can anyone
>>> help me
OK, since we've started giving solutions...
> Hi Jared, try this:
>
> for i in range(-10,11):
> print '*'*(11-abs(i))
This is simpler using
for n in range (10,0,-1):
print '*' * n
HTH,
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list