-
Notifications
You must be signed in to change notification settings - Fork 0
/
ex34.py
44 lines (28 loc) · 894 Bytes
/
ex34.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
import time
animals = ['bear', 'python', 'peacock', 'kangaroo', 'whale', 'platypus']
print "All the animals are:"
time.sleep(1)
for number in animals:
print "The %s." % number
time.sleep(0.5)
print "OK, now we know what is in the list, lets look at the individual parts."
print "\n"
time.sleep(2)
print "The animal at 1, is a %s" % animals[1]
time.sleep(1)
print "The third (3rd) animal is at 2 and is %s" % animals[2]
time.sleep(1)
print "The first (1st) animal is at 0, and it is a %s" % animals[0]
time.sleep(1)
print "The animal at 3, is a %s" % animals[3]
time.sleep(1)
print "The fifth (5th) animal is at 4 and is a %s" % animals[4]
time.sleep(1)
print "the animal at 2 is at 2, and is a %s" % animals[2]
time.sleep(1)
print "The animal at 4, is at the fourth place and is a %s" % animals[4]
time.sleep(1)
print "\n"
print "\n"
print "Done!"