-
Notifications
You must be signed in to change notification settings - Fork 0
/
ex34.py
17 lines (15 loc) · 750 Bytes
/
ex34.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# call out values from a list
animals = ['bear', 'python', 'peacock', 'kangaroo', 'whale', 'platypus']
print("The animal at 1 is", animals[1])
print("The third animal is",animals[2])
print("The first animal is", animals[0])
print("The animal at 3 is", animals[3])
print("The fifth animal is", animals[4])
print("The animal at 2 is", animals[2])
print("The sixth animal is", animals[5])
print("The animal at 4 is", animals[4])
num = [1,2,3,4,5]
for x in num:
print(x, "is at index",x-1)
# Study drill 1: Cardinal Number tells how many things there are. Ordinal Number is the number that tells the position(such as 1st 2nd)
# Study drill 2: it's a Cardinal Number because it tells that there are 2010 years instead of saying it's the 2009th year