1#Entering how many matches and the scores
2lst = []
3num = int(input('How many matches(3-10 matches): '))
4for n in range(num):
5 numbers = int(input('If los enter 1, if win enter 0: '))
6 lst.append(numbers)
7lst_sum = sum(lst)
8
9#Telling if you won or lost, by summing up the scores
10if num == 3:
11 if lst_sum == 3:
12 print("You lost all the Matches!")
13
14 elif lst_sum == 0:
15 print("You won all the Matches!")
16
17 elif lst_sum == 2:
18 print("You lost the Game!")
19
20 elif lst_sum == 1:
21 print("You won the Game!")
22
23elif num == 4:
24 if lst_sum == 0:
25 print("You won the Game!")
26 elif lst_sum == 1:
27 print("You won the Game!")
28 elif lst_sum == 2:
29 print("Its a Tie!")
30 elif lst_sum == 3:
31 print("You lost the game!")
32 elif lst_sum == 4:
33 print("You lost the game!")
34
35elif num == 5:
36 if lst_sum == 0:
37 print("You won the Game!")
38 elif lst_sum == 1:
39 print("You won the Game!")
40 elif lst_sum == 2:
41 print("You won the game!")
42 elif lst_sum == 3:
43 print("You lost the game!")
44 elif lst_sum == 4:
45 print("You lost the game!")
46 elif lst_sum == 5:
47 print("You lost the game!")
48
49elif num == 6:
50 if lst_sum == 0:
51 print("You won the Game!")
52 elif lst_sum == 1:
53 print("You won the Game!")
54 elif lst_sum == 2:
55 print("You won the game!")
56 elif lst_sum == 3:
57 print("Its a tie!")
58 elif lst_sum == 4:
59 print("You lost the game!")
60 elif lst_sum == 5:
61 print("You lost the game!")
62 elif lst_sum == 6:
63 print("You lost the game!")
64
65elif num == 7:
66 if lst_sum == 0:
67 print("You won the Game!")
68 elif lst_sum == 1:
69 print("You won the Game!")
70 elif lst_sum == 2:
71 print("You won the game!")
72 elif lst_sum == 3:
73 print("You won the game!")
74 elif lst_sum == 4:
75 print("You lost the game!")
76 elif lst_sum == 5:
77 print("You lost the game!")
78 elif lst_sum == 6:
79 print("You lost the game!")
80 elif lst_sum == 7:
81 print("You lost the game!")
82
83
84elif num == 8:
85 if lst_sum == 0:
86 print("You won the Game!")
87 elif lst_sum == 1:
88 print("You won the Game!")
89 elif lst_sum == 2:
90 print("You won the game!")
91 elif lst_sum == 3:
92 print("You won the game!")
93 elif lst_sum == 4:
94 print("Its a tie!")
95 elif lst_sum == 5:
96 print("You lost the game!")
97 elif lst_sum == 6:
98 print("You lost the game!")
99 elif lst_sum == 7:
100 print("You lost the game!")
101 elif lst_sum == 8:
102 print("You lost the game!")
103
104elif num == 9:
105 if lst_sum == 0:
106 print("You won the Game!")
107 elif lst_sum == 1:
108 print("You won the Game!")
109 elif lst_sum == 2:
110 print("You won the game!")
111 elif lst_sum == 3:
112 print("You won the game!")
113 elif lst_sum == 4:
114 print("You won the game!")
115 elif lst_sum == 5:
116 print("You lost the game!")
117 elif lst_sum == 6:
118 print("You lost the game!")
119 elif lst_sum == 7:
120 print("You lost the game!")
121 elif lst_sum == 8:
122 print("You lost the game!")
123 elif lst_sum == 9:
124 print("You lost the game!")
125
126elif num == 10:
127 if lst_sum == 0:
128 print("You won the Game!")
129 elif lst_sum == 1:
130 print("You won the Game!")
131 elif lst_sum == 2:
132 print("You won the game!")
133 elif lst_sum == 3:
134 print("You won the game!")
135 elif lst_sum == 4:
136 print("You won the game!")
137 elif lst_sum == 5:
138 print("Its a tie!")
139 elif lst_sum == 6:
140 print("You lost the game!")
141 elif lst_sum == 7:
142 print("You lost the game!")
143 elif lst_sum == 8:
144 print("You lost the game!")
145 elif lst_sum == 9:
146 print("You lost the game!")
147 elif lst_sum == 10:
148 print("You lost the game!")
149
150#Prints if you won or lost