-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquiz.py
188 lines (186 loc) · 5.02 KB
/
quiz.py
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
score = (0)
name = input("What is your name? ")
print("Hello " + name)
question = input("Do you want to take a quiz? Use caps lock. ")
if question == 'NO':
print("GET OUT OF HERE")
print("---------------------------------------------------")
quit()
else:
question = input("Directions: Use caps lock for all answers or you will get it wrong, dates are written as (MONTH DAY#, YEAR) Are you ready to take the quiz? ")
#QUESTIONS
input("First, WWII questions: Press enter")
print("When was D-Day")
answer1 = input("Answer: ")
if answer1 == 'JUNE 6, 1944':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score:")
print(score)
else:
input("WRONG: JUNE 6, 1944 PRESS ENTER")
score = score - 1
print("Your score:")
print(score)
print("What was the name of the boat that carried the ground troops to the beaches? ")
answer2 = input("Answer: ")
if answer2 == 'HIGGINS':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score:")
print(score)
else:
input("WRONG: HIGGINS PRESS ENTER")
score = score -1
print("Your score:")
print(score)
print("True or False: D-Day was the largest amphibious military invasion force. ")
answer3 = input("Answer: ")
if answer3 == 'TRUE':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score:")
print(score)
else:
input("WRONG: TRUE PRESS ENTER")
score = score - 1
print("Your score")
print("What year did WWII start?")
answer4 = input("Answer: ")
if answer4 == '1939':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score")
print(score)
else:
input("WRONG: 1939 PRESS ENTER")
score = score - 1
print("Your score")
print(score)
print("What year did America enter WWII ")
answer5 = input("Answer: ")
if answer5 == '1941':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score")
print(score)
else:
input("WRONG: 1941 PRESS ENTER")
score = score - 1
print("Your score:")
print(score)
print("What year did WWII end? ")
answer6 = input("Answer: ")
if answer6 == '1945':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score")
print(score)
else:
input("WRONG: 1945 PRESS ENTER")
score = score - 1
print("Your score")
print(score)
print("What date did the battle of Midway start? ")
answer7 = input("Answer: ")
if answer7 == 'JUNE 4, 1942':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score")
print(score)
else:
input("WRONG: JUNE 4, 1942 PRESS ENTER")
score = score - 1
print("Your score")
print(score)
print("What date did the battle of Midway end? ")
answer8 = input("Answer: ")
if answer8 == 'JUNE 7, 1942':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score")
print(score)
else:
input("WRONG: JUNE 7, 1942 PRESS ENTER")
score = score - 1
print("Your score")
print(score)
print("Who won the battle of Midway? ")
answer9 = input("Answer: ")
if answer9 == 'AMERICA':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score")
print(score)
else:
input("WRONG: AMERICA PRESS ENTER")
score = score - 1
print("Your score")
print(score)
print("What was the name of the airplane that dropped the atomic bomb? ")
answer10 = input("Answer: ")
if answer10 == 'ENOLA GAY':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score")
print(score)
else:
input("WRONG: ENOLA GAY PRESS ENTER")
score = score - 1
print("Your score")
print(score)
input("That ends the WWII questions. PRESS ENTER")
input("Now for the general knowledge questions. PRESS ENTER")
#GENERAL KNOWLEDGE QUESTIONS
input("Ready for the general knowledge questions? PRESS ENTER")
print("What year did Ohio become a state? ")
answer11 = input("Answer: ")
if answer11 == '1803':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score")
print(score)
else:
input("WRONG: 1803 PRESS ENTER")
score = score - 1
print("Your score")
print(score)
print("Who was the first president? ")
answer12 = input("Answer: ")
if answer12 == 'GEORGE WASHINGTON':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score")
print(score)
else:
input("WRONG: GEORGE WASHINGTON, PRESS ENTER")
score = score - 1
print("Your score")
print(score)
print("Who was the 30th president? ")
answer13 = input("Answer: ")
if answer13 == 'CALVIN COOLIDGE':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score")
print(score)
else:
input("WRONG: CALVIN COOLIDGE, PRESS ENTER")
score = score - 1
print("Your score")
print(score)
print("The Manhattan project created what? ")
answer14 = input("Answer: ")
if answer14 == 'THE ATOMIC BOMB':
input("CORRECT: PRESS ENTER")
score = score + 1
print("Your score")
print(score)
else:
input("WRONG: THE ATOMIC BOMB, PRESS ENTER")
score = score - 1
print("Your score")
print(score)
print("This is the end of the quiz yout score is: ")
print(score)
quit()