-
Notifications
You must be signed in to change notification settings - Fork 0
/
Quiz Game.py
44 lines (33 loc) · 989 Bytes
/
Quiz Game.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
print("Welcome to the Quiz Game!")
playing = input("Do you want to play :")
if playing.lower() == "yes":
print("starting the game")
score = 0
else:
quit()
question = (input("who is the founder of tesla ?"))
if question.lower() == "elon musk":
print("Correct Answer! ✔")
score += 1
else:
print("Incorrect answer")
question = (input("who is the founder of Microsoft ?"))
if question.lower() == "bill gates":
print("Correct Answer! ✔")
score += 1
else:
print("Incorrect answer")
question = (input("CPU stands for what ?"))
if question.lower() == "central processing unit":
print("Correct Answer! ✔")
score += 1
else:
print("Incorrect answer")
question = (input("what is the title of this game ?"))
if question.lower() == "quiz game":
print("Correct Answer! ✔")
score += 1
else:
print("Incorrect answer")
print("You have scored " +str(score),"/4")
print("Thank you 💖")