Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create QUIZE GAME #61

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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 QUIZE GAME
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:")

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the structure of the repository: Repository > Sub-Repository (for your project) > your code.

I also see that the file doesn't have an extension. Please make it a python file.

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)+"%")