-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbout_Felix_Cat.py
30 lines (27 loc) · 989 Bytes
/
About_Felix_Cat.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
#lets print title
print('All the fine cats')
#who are the cats?
Cats=['Felix','Sylvester','Top']
#what are they like?
Qualities=['Glossy', 'Jellicle', 'Rowdy']
#how many are there?
Cat_count=[1,15,30]
#All about Felix
Felix_about = {'Fur': 'Glossy', 'Nose': 'Pink', 'Ears': 2, 'Leg_numbers':[1,2,3,4] }
#How many things do we know about Felix?
len(Felix_about)
#Is it true that we know more than seven things about Felix?
we_know_seven=len(Felix_about)>7
print ('Is it True or False that we know seven things about Felix? ',we_know_seven)
#Do we know more than three things about Felix?
print ('Do we know more than three things about Felix?')
if len(Felix_about) < 3:
print ("We know less than three things about Felix")
elif len(Felix_about) >=3:
print ("We know three or more things about Felix")
#Lets try listing all the cats then all their qualities
def CatNames(name)
print ('meow' + Cats + )
for name in Cats
CatNames(name)
print ('And another cat')