for i in range(5): print "".join(str(i) for j in range(i)) -- http://mail.python.org/mailman/listinfo/python-list
You could also try http://docs.python.org/library/stdtypes.html#str.join
like this:
- For loop viral shah
- Re: For loop Chris Angelico
- Re: For loop Terry Reedy
- Re: For loop Daniel
- Re: For loop Jabba Laci