-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex34ahv2.py
More file actions
31 lines (26 loc) · 812 Bytes
/
Copy pathex34ahv2.py
File metadata and controls
31 lines (26 loc) · 812 Bytes
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
animals = ['bear', 'python', 'peacock', 'kangaroo', 'whale', 'platypus']
list(enumerate(animals))
print "Select 1 for ordinal or 2 for cardinal order. Which option would you like 1 or 2"
option = raw_input("> ")
if option == "1":
print "Select ordinal animal position"
Animal_position = raw_input("> ")
for Animal_position , animals in enumerate(animals):
if Animal_position == 0:
print animals
elif Animal_position == 1:
print animals
elif Animal_position == 2:
print animals
elif Animal_position == 3:
print animals
elif Animal_position == 4:
print animals
elif Animal_position == 5:
print animals
elif Animal_position == 6:
print animals
elif option =="2":
print "Select cardinal animal position"
#for animal in animals:
##print "A animal of type: %s" % animal