-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz.py
More file actions
61 lines (44 loc) · 1.22 KB
/
quiz.py
File metadata and controls
61 lines (44 loc) · 1.22 KB
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 the quiz!!")
playing =input("Do you want to play? ")
if playing.lower() !="yes":
quit()
print("Okay! Let's Play:)")
score=0
answer = input("What does RAM stand for? ")
if answer.lower()=="random access memory":
print("Correct!🥳")
score+=1
else:
print("Incorrect😥")
answer = input("What does CPU stand for? ")
if answer.lower()=="central processing unit":
print("Correct!🥳")
score+=1
else:
print("Incorrect😥")
answer = input("What does API stand for? ")
if answer.lower()=="application programming interface":
print("Correct!🥳")
score+=1
else:
print("Incorrect😥")
answer = input("What does GPU stand for? ")
if answer.lower()=="graphics processing unit":
print("Correct!🥳")
score+=1
else:
print("Incorrect😥")
answer = input("What does CN stand for? ")
if answer.lower()=="computer network":
print("Correct!🥳")
score+=1
else:
print("Incorrect😥")
answer = input("What does OS stand for? ")
if answer.lower()=="operating system":
print("Correct!🥳")
score+=1
else:
print("Incorrect😥")
print("You got " + str(score) + " question correct 😎😎😎")
print("You got " +str((score/6)*100)+ " %. 🙌🙌🙌 ")