-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3_Cat_Life.py
More file actions
49 lines (44 loc) · 1.56 KB
/
3_Cat_Life.py
File metadata and controls
49 lines (44 loc) · 1.56 KB
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
45
46
47
48
49
# 6 човешки месеца се равняват на 1 котешки месец
import math
cat_breed = input() #"British Shorthair", "Siamese"
gender_cat = input() #f or m
result = 0
if cat_breed == "British Shorthair":
if gender_cat == "m":
result = math.floor(13 * 12) / 6
elif gender_cat == "f":
result = math.floor(14 * 12) / 6
print(f"{math.floor(result)} cat months")
elif cat_breed == "Siamese":
if gender_cat == "m":
result = math.floor(15 * 12) / 6
elif gender_cat == "f":
result = math.floor(16 * 12) / 6
print(f"{math.floor(result)} cat months")
elif cat_breed == "Persian":
if gender_cat == "m":
result = math.floor(14 * 12) / 6
elif gender_cat == "f":
result = math.floor(15 * 12) / 6
print(f"{math.floor(result)} cat months")
elif cat_breed == "Ragdoll":
if gender_cat == "m":
result = math.floor(16 * 12) / 6
elif gender_cat == "f":
result = math.floor(17 * 12) / 6
print(f"{math.floor(result)} cat months")
elif cat_breed == "American Shorthair":
if gender_cat == "m":
result = math.floor(12 * 12) / 6
elif gender_cat == "f":
result = math.floor(13 * 12) / 6
print(f"{math.floor(result)} cat months")
elif cat_breed == "Siberian":
if gender_cat == "m":
result = math.floor(11 * 12) / 6
elif gender_cat == "f":
result = math.floor(12 * 12) / 6
print(f"{math.floor(result)} cat months")
else:
result = "invalid"
print(f"{cat_breed} is invalid cat!")