We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ac2272 commit f91e2b4Copy full SHA for f91e2b4
1 file changed
Codes_in_jan2024/kbc.py
@@ -1,24 +1,28 @@
1
-qns = ["q1: 3 + 5 =","q2: 4 * 5 =","q3: 9 / 3 ="]
+qns = ["q1: 3 + 5 =","q2: 4 * 5 =","q3: 9 / 3 ="]
2
+score = 0
3
print(qns[0])
4
a = int(input("ENTER ANSWER:"))
5
match a:
6
case _ if a == 8:
- print("RIGHT")
7
+ print("RIGHT")
8
+ score += 1
9
case _:
10
print("WRONG")
11
12
print(qns[1])
13
b = int(input("ENTER ANSWER:"))
14
match b:
15
case _ if b == 20:
16
17
18
19
20
21
print(qns[2])
22
c = int(input("ENTER ANSWER:"))
23
match c:
24
case _ if c == 3:
25
26
27
28
0 commit comments