# We used this code to practise the for statement
# specifically we modified the range to go forwards
# and backwards and changed the incremental steps
# taken in each iteration
for x in range(0,11,2):
    print x,

print

# Simple example of a for statement
# in this statement, for allows you to iterate (loop) through the list
# a.  At each iteration, a successive word is assigned to the variable
# "words", and in the block of code executed in the loop, the word is printed.
# Note that with the for statement, we don't have to fuss with initializing 
# an index, and incrementing it in the loop.  Incremental change is automatic.
a = ["hi", "how", "can", "They","Schedule", "Anything", "At 9 a.m.!"]
for words in a:
    print words,

# We use the for loop to iterate through each letter in the string b.
# At each iteration, a letter in the string is assigned to "letter", and
# the body of the loop prints the letter.
print
b = "INCREDIBLE!!!"
for letter in b:
    print letter,

# We combine the for statement with a range and a step in the backwards
# direction to spell the word backwards.
print
a = "INCREDIBLE!!!"
b = range(len(a)-1, -1, -1)
for x in b:
     print a[x],