# Dashika PV's Blog

We all played quizzes when we were kids, remember let's relish it now again but we will code it from scratch, it's simple.

Like: What is the use of AI?

Now we need to know if the user wants to play right so to check we do this:

`playing = input("Do you want to play? Yes or No: ") if playing.lower() != "yes": quit() print("Okay Let's play:) ")`

When the user says yes to playing the quiz then a set of questions must pop in front, right?

for that, we do this: `answer = input("What does CPU stand for? ")`

`if answer.lower() == "central processing unit":`

`print("Correct!") score += 1`

`else :`

`print("Incorrect!")`

### Now let's see the complete code:

``````print("Welcome to my computer quiz.")

playing = input("Do yu want to play? Yes or No: ")

if playing.lower() != "yes":

quit()

print("Okay Let's play:) ")

score = 0

answer = input("What does CPU stand for? ")
if answer.lower() == "central processing unit":
print("Correct!")
score += 1

else :
print("Incorrect!")

answer = input("What does RAM stand for? ")
if answer.lower() == "random access memory":
print("Correct!")
score += 1

else :
print("Incorrect!")

answer = input("What does GPU stand for? ")
if answer.lower() == "graphic processing unit":
print("Correct!")
score += 1

else :
print("Incorrect!")

answer = input("What does ROM stand for? ")
print("Correct!")
score += 1

else :
print("Incorrect!")

answer = input("What does PSU stand for? ")
print("Correct!")
score += 1

else :
print("Incorrect!")

answer = input("What does AI stand for? ")
print("Correct!")
score += 1

else :
print("Incorrect!")

answer = input("What does ML stand for? ")
print("Correct!")
score += 1

else :
print("Incorrect!")

answer = input("What does VR stand for? ")
print("Correct!")
score += 1

else :
print("Incorrect!")

answer = input("What does AR stand for? ")
print("Correct!")
score += 1

else :
print("Incorrect!")

answer = input("What does DP stand for? ")