Mailing List Archive

For loop
Hi

I want to make a pattern like this

*1
22
333
4444
55555
*
and I did the following code,

*for i in range (5):
for j in range (i):
print i
print " "*

got the output :
*
*

*1

2
2

3
3
3

4
4
4
4*


What's I'm not doing right, please let me know about this