-
Notifications
You must be signed in to change notification settings - Fork 0
/
#QuizGame.py
43 lines (34 loc) · 1002 Bytes
/
#QuizGame.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
#Quizgame
print("quiz")
p = input("do you want to play?. ").strip().lower()
if p.lower() == "yes":
print("Let's play! ")
else:
quit()
score = 0
answer = input("What does CPU stand for? ")
if answer.lower() == "central proccessing unit":
print("Correct! ")
score+=1
else:
print("The answer is incorrect!")
answer = input("What does GPU stand for? ")
if answer.lower() == "graphics processing unit":
print("Correct! ")
score+=1
else:
print("The answer is incorrect!")
answer = input("What does RAM stand for? ")
if answer.lower() == "random access memory":
print("Correct! ")
score+=1
else:
print("The answer is incorrect!")
answer = input("What does PSU stand for? ")
if answer.lower() == "public service unit":
print("Correct! ")
score+=1
else:
print("The answer is incorrect!")
print(f"You got {score} questions correct")
print(f"You got {(score/4)*100} percentage correct")