-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkaror2.py
More file actions
37 lines (37 loc) · 1.36 KB
/
Copy pathkaror2.py
File metadata and controls
37 lines (37 loc) · 1.36 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
questions =[
["what is the national animal","monkey","anaconda","tiger","deer",3],
["what is the national tree","monkey","banyan","tiger","deer",2],
["what is the national anthem","monkey","anaconda","tiger","janaganamana",4],
["what is the national bird","peacock","anaconda","tiger","deer",1],
["what is the national dish","monkey","anaconda","tiger","curry",4],
["what is the national sport","hockey","anaconda","tiger","deer",1],
["what is the national colour","monkey","anaconda","purple","deer",3]
]
levels = [1000,2000,3000,4000,5000,6000,7000]
amount = 0
for i in range(len(questions)):
ques = questions[i]
print(f"\n\n Question for Rs. {levels[i]}")
print(ques[0])
print(f"1. {ques[1]} 2. {ques[2]}")
print(f"3. {ques[3]} 4. {ques[4]}")
reply = int(input("enter your answer (1-4) or 0 to quit: \n"))
if(reply == 0):
if i==0:
amount = 0
else:
amount = levels[i-1]
break
if(reply == ques[-1]):
amount = levels[i]
print(f"correct answer , you have won {levels[i]}")
if(i == 2):
amount = 10000
elif(i == 4):
amount = 320000
elif(i == 6):
amount = 10000000
else:
print("wrong answer!")
break
print(f"\n you take home the money is {amount}")