[Tutor] small program

Andrius ziniatinklis at gmail.com
Thu Oct 1 13:31:38 CEST 2009


Hi!

There are interesting online course
http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-00Fall-2008/LectureVideos/index.htm
where I'm trying to learn Python.
Looks quite interesting and I would like to create a program which
should repeat a simply string several times with list number before.
Like "1. Wanna more. 2. Wanna more. ..."
Suppose to a loop here repeating, say x times. Should it look like that:

y="Wanna more. "
x=1
x=x+d:
d=<100
print d+y

How to create a program for such kind of task?

Regards,
Andrius


More information about the Tutor mailing list