from itertools import cycle
greeting = ['Hello', 'World!', '\n']
for word in cycle(greeting):
print word,

Share this post

2 Comments

  1. Hugo

    for i in rage(1,10):
        print “A simple comment :-D

    31/08/2009
  2. Hugo

    Ouch! invalid syntax XD

    31/08/2009

Leave a Reply