-
Notifications
You must be signed in to change notification settings - Fork 0
/
quize_game.py
58 lines (38 loc) · 1.01 KB
/
quize_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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
print("Welcome to my computer quize!")
playing = input("Do you want to play?")
if playing.lower() != "yes":
quit()
print("okey! Let's Play:)")
score=0
answer= input("what does CPU means?\n")
if answer=="Central Processing Unit":
print("correct")
score += 1
else:
print("Incorrect!")
answer= input("what does GPU means?\n")
if answer=="graphics Processing Unit":
print("correct")
score += 1
else:
print("Incorrect!")
answer= input("what does RAM means?\n")
if answer=="Random Access Memory":
print("correct")
score += 1
else:
print("Incorrect!")
answer= input("what does ROM means?\n")
if answer=="Read Only Memory":
print("correct")
score += 1
else:
print("Incorrect!")
answer= input("what does DOM means?\n")
if answer=="Data Object Module":
print("correct")
score += 1
else:
print("Incorrect!")
print("You got " + str(score)+ " questions correct!")
print("You got " + str((score/4)*100) + "%.")