-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuiz_game.py
More file actions
80 lines (65 loc) · 1.51 KB
/
Quiz_game.py
File metadata and controls
80 lines (65 loc) · 1.51 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
print("Computer Quiz")
playing=input("Do you want to play:y/n ")
chk=playing.lower()
if chk !='y':
quit()
print("Lets Start!!")
s=0
c=0
ans=input("Who was the first person in space? \n")
if ans.lower()=='Yuri Gagarin':
print("Correct")
s=s+1
c=c+1
else:
print("incorrect\n correct is Yuri Gagarin")
c=c+1
ans=input("Some who suffer from Alopecia lacks what? \n")
if ans.lower()=='Hair':
print("Correct")
s=s+1
c=c+1
else:
print("incorrect\n correct is Hair")
c=c+1
ans=input("What is the chemical symbol of Tungsten?\n")
if ans.lower()=='w':
print("Correct")
s=s+1
c=c+1
else:
print("incorrect\n correct is W")
c=c+1
ans=input("What do Ombrophobes have a fear of? \n")
if ans.lower()=='rain':
print("Correct")
s=s+1
c=c+1
else:
print("incorrect\n correct is Rain")
c=c+1
ans=input("How many Noble Gasses are there?\n")
if ans.lower()=='6':
print("Correct")
s=s+1
c=c+1
else:
print("incorrect\n correct is 6")
c=c+1
ans=input("What mineral has the lowest number on the Mohs scale? \n")
if ans.lower()=='talc':
print("Correct")
s=s+1
c=c+1
else:
print("incorrect\n correct is Talc")
c=c+1
ans=input("During which war were the concentration camps invented? \n")
if ans.lower()=='boer war':
print("Correct")
s=s+1
c=c+1
else:
print("incorrect\n correct is Boer war")
c=c+1
print('Your Score is :',s,'out of :',c)