Janos, Hi, you can use range() together with for (and probably other methods as well), e.g.
start=100 stop=120 step=3 for i in range(start, stop, step): print i should do the trick, you can also play around with negative parameters to range() Good luck. Amund http://www.idi.ntnu.no/~amundt/ ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 11:58 AM Subject: loop control in python > Python was my biggest surprise last year. I found it be very usefull and > tasty. The IDLE gives really fantastic opportunities. It is really GRAND. > My only problem with python is the missing 'for '. > The for statement in python seems to be a foreach > and the 'while 1:' is really a strange 'accent'. > > How do you solve the missing of the classical FOR ? > > Best regards, > > E-Mail: [EMAIL PROTECTED] > > _______________________________________________ > ActivePython mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs