[Tutor] please help me!

Ben Sherman bensherman at gmail.com
Fri Apr 13 05:43:59 CEST 2007


You

On 4/12/07, suryo agung <suryogondol at gmail.com> wrote:
> pleate tell me how to make
>
> input number=4
> result
>
> 1
> 22
> 333
> 4444
>
> in python
> please give me your answer.

input_number = 4

for i in range(1,input_number + 1):
  print str(i) * i

If this is homework, please tell your teacher I helped - I need the
extra credit.


More information about the Tutor mailing list