Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions QUIZEGAME.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
print("Wlecome to my computer quiz!")

playing=input("Do you want to play?")

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 GPU stand for?")
if answer.lower()=="graphics 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("EEPROM stands for _______?")
if answer.lower()=="Electronic Erasable Programmable Read Only Memory" :
print("correct")
score+=1
else:
print("incorrect")

answer=input("BCD is _______?")
if answer.lower()=="Binary Coded Decimal" :
print("correct")
score+=1
else:
print("incorrect")

print("you got"+str(score)+"question correct!")
print("you got"+str((score/4)*100)+"%")