-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlargest_integer.py
More file actions
62 lines (49 loc) · 857 Bytes
/
Copy pathlargest_integer.py
File metadata and controls
62 lines (49 loc) · 857 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#Morning Snacks
a = 62
b = 89
c = 85
if a > b and a > c:
largest = a
elif b > a and b > c:
largest = b
elif c > a and c > b:
largest = c
print(largest)
x = 42
y = 12
z = 55
if x > y and x > z:
largest = x
elif y > x and y > z:
largest = y
elif z > y and z > x:
largest = z
if x < y and x < z:
smallest = x
elif y < x and y < z:
smallest = y
elif z < y and z < x:
smallest = z
if smallest != x and x != largest:
second_largest = x
if y != smallest and y != largest:
second_largest = y
if z != smallest and z != largest:
second_largest = z
print(second_largest)
days = int(input("Which of the days do you want? "))
match days:
case 1:
print("Monday")
case 2:
print("Tuesday")
case 3:
print("Wednesday")
case 4:
print("Thursday")
case 5:
print("Friday")
case 6:
print("Saturday")
case 7:
print("Sunday")