<filename>exercises/ex34.py
# Exercise 34
# https://learnpythonthehardway.org/book/ex34.html

animals = ['bear', 'python', 'peacock', 'kangaroo', 'whale', 'platypus']

print "The animal at 1.", "The animal at 1 is at 1 and is a python.", animals[1]

print "The third (3rd) animal.", "The third (3rd) animal is at 2 and is a peacock.", animals[2]

print "The first (1st) animal.", "The first (1st) animal is at 0 and is a bear.", animals[0]

print "The animal at 3.", "The animal at 3 is at 3 and is a kangaroo.", animals[3]

print "The fifth (5th) animal.", "The fifth (5th) animal is at 4 and is a whale.", animals[4]

print "The animal at 2.", "The animal at 2 is at 2 and is a peacock.", animals[2]

print "The sixth (6th) animal.", "The sixth (6th) animal is at 5 and is a platypus.", animals[5]

print "The animal at 4.", "The animal at 4 is at 4 and is a kangaroo.", animals[3]

<filename>exercises/ex34.py
# Exercise 34
# https://learnpythonthehardway.org/book/ex34.html

animals = ['bear', 'python', 'peacock', 'kangaroo', 'whale', 'platypus']

print "The animal at 1.", "The animal at 1 is at 1 and is a python.", animals[1]

print "The third (3rd) animal.", "The third (3rd) animal is at 2 and is a peacock.", animals[2]

print "The first (1st) animal.", "The first (1st) animal is at 0 and is a bear.", animals[0]

print "The animal at 3.", "The animal at 3 is at 3 and is a kangaroo.", animals[3]

print "The fifth (5th) animal.", "The fifth (5th) animal is at 4 and is a whale.", animals[4]

print "The animal at 2.", "The animal at 2 is at 2 and is a peacock.", animals[2]

print "The sixth (6th) animal.", "The sixth (6th) animal is at 5 and is a platypus.", animals[5]

print "The animal at 4.", "The animal at 4 is at 4 and is a kangaroo.", animals[3]

# Exercise 34 # https://learnpythonthehardway.org/book/ex34.html