-
Notifications
You must be signed in to change notification settings - Fork 0
/
Quiz Game.py
49 lines (39 loc) · 1.04 KB
/
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
45
46
47
48
49
print('Quiz Game')
playing = input('Do you want to play? ')
if playing != 'yes':
print("We'll play another time")
quit()
print("Okay Let's play :)")
score = 0
answer = input('What does CPU stand for? ')
if answer == 'central processing unit':
print('correct!')
score += 1
else:
print('Incorrect try again!')
answer = input('What does PSU stand for? ')
if answer == 'power supply unit':
print('correct!')
score += 1
else:
print('Incorrect try again!')
answer = input('What does GPU stand for? ')
if answer == 'graphic processing unit':
print('correct!')
score += 1
else:
print('Incorrect try again!')
answer = input('What does RAM stand for? ')
if answer == 'random access memory':
print('correct!')
score += 1
else:
print('Incorrect try again!')
answer = input('What does ROM stand for? ')
if answer == 'read only memory':
print('correct!')
score += 1
else:
print('Incorrect try again!')
print('You got ' + str(score) + ' questions Correct!')
print('You got ' + str((score / 4) * 100) + '%')