List Info

Thread: please help me!




please help me!
user name
2007-04-12 20:57:41
pleate tell me how to make

input number=4
result

1
22
333
4444

in python
please give me your answer.
_______________________________________________
Tutor maillist  -  Tutorpython.org
http://
mail.python.org/mailman/listinfo/tutor

Re: please help me!
country flaguser name
United States
2007-04-12 22:29:13
suryo agung wrote:
> pleate tell me how to make
> 
> input number=4
> result
> 
> 1
> 22
> 333
> 4444
> 
> in python
> please give me your answer.

This looks a lot like homework to me. What have you tried?
What have you 
learned?

Kent
_______________________________________________
Tutor maillist  -  Tutorpython.org
http://
mail.python.org/mailman/listinfo/tutor

Re: please help me!
user name
2007-04-12 22:43:59
You

On 4/12/07, suryo agung <suryogondolgmail.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.
_______________________________________________
Tutor maillist  -  Tutorpython.org
http://
mail.python.org/mailman/listinfo/tutor

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )