Today this free Friday I am working on a project on YouTube a quiz game
print("Welcome to my computer quiz!")
playing = input("Do you want to play? ")
if playing != "yes":
quit()
- This part of the quiz game makes sure you wont to play the quiz game
answer = input("What does CPU stand for? ")
if answer == "central processing unit":
print('Correct!')
else:
print("Incorrect!")
answer = input("What does GPU stand for? ")
if answer == "graphics processing unit":
print('Correct!')
else:
print("Incorrect!")
answer = input("What does RAM stand for? ")
if answer == "random access memory":
print('Correct!')
else:
print("Incorrect!")
answer = input("What does PSU stand for? ")
if answer == "power supply":
print('Correct!')
else:
print("Incorrect!")
- This part of The quiz game is The questions makes if it incorrect or correct