Instant Hacking
Learn how to program with Python

The "For" Loop

    for food in "spam", "eggs", "tomatoes":
        print "I love", food

    for number in range(1,100):
        print "Hello, world!"
        print "Just", 100 - number, "more to go..."

    print "Hello, world"
    print "That was the last one... Phew!"