-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasicifelsequiz.py
More file actions
77 lines (74 loc) · 2.3 KB
/
basicifelsequiz.py
File metadata and controls
77 lines (74 loc) · 2.3 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
print("Welcome to the Computer quiz")
x=input("Do you wanna play the quiz y or n? ")[0]
if x=="y" or "Y" :
print("lets start the quiz")
else:
print("You are a loser if you stop without even playing once")
ask =input("Are you sure you want to quit? ")[0]
if ask== "y" or "Y":
print("YOU REALLY ARE A LOSER")
quit()
print("Okay lets play :)")
# print("HINT: THE QUIZ IS CASE SENSITIVE SO WRITE EVERYTHING IN SMALL")
score=0
ans1=input("What does CPU stand for? ")
if ans1.lower() == "central processing unit":
print("YOU GOT IT CORRECT +1")
score+=1
else:
print("INCORRECT ANSWER TRY HARDER :(")
ans1=input("What does RAM stand for? ")
if ans1.lower() == "random access memory":
print("YOU GOT IT CORRECT +1")
score +=1
else:
print("INCORRECT ANSWER TRY HARDER :(")
ans1=input("What does HDD stand for? ")
if ans1.lower() == "hard disk drive":
print("YOU GOT IT CORRECT +1")
score +=1
else:
print("INCORRECT ANSWER TRY HARDER :(")
ans1=input("What does SSD stand for? ")
if ans1.lower() == "solid state drive":
print("YOU GOT IT CORRECT +1")
score +=1
else:
print("INCORRECT ANSWER TRY HARDER :(")
ans1=input("What does ROM stand for? ")
if ans1.lower() == "read only memory":
print("YOU GOT IT CORRECT +1")
score +=1
else:
print("INCORRECT ANSWER TRY HARDER :(")
ans1=input("What does USB stand for? ")
if ans1.lower() == "universal serial bus":
print("YOU GOT IT CORRECT +1")
score +=1
else:
print("INCORRECT ANSWER TRY HARDER :(")
ans1=input("What does LAN stand for? ")
if ans1.lower() == "local area network":
print("YOU GOT IT CORRECT +1")
score +=1
else:
print("INCORRECT ANSWER TRY HARDER :(")
ans1=input("What does WAN stand for? ")
if ans1.lower() == "wide area network":
print("YOU GOT IT CORRECT +1")
score +=1
else:
print("INCORRECT ANSWER TRY HARDER :(")
ans1=input("What does ISP stand for? ")
if ans1.lower() == "internet service provider":
print("YOU GOT IT CORRECT +1")
score +=1
else:
print("INCORRECT ANSWER TRY HARDER :(")
ans1=input("What does GPU stand for? ")
if ans1.lower() == "graphical processing unit":
print("YOU GOT IT CORRECT +1")
score +=1
else:
print("INCORRECT ANSWER :(")
print("You got " + str(score) + " marks and your percentage is "+ str(score*10)+"%!!" )