From 7d71ce3e531b6ff3b0d68546d57007aaefa655f7 Mon Sep 17 00:00:00 2001 From: riya02002 <114855646+riya02002@users.noreply.github.com> Date: Tue, 18 Oct 2022 00:30:49 +0530 Subject: [PATCH 1/2] Create QUIZE GAME I added a QIUZ GAME project for hacktoberfest. --- QUIZE GAME | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 QUIZE GAME diff --git a/QUIZE GAME b/QUIZE GAME new file mode 100644 index 0000000..025431a --- /dev/null +++ b/QUIZE GAME @@ -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)+"%") From 9685ee2d5a3eea42ec0a6194bdf6b5ef33b93c3e Mon Sep 17 00:00:00 2001 From: riya02002 <114855646+riya02002@users.noreply.github.com> Date: Fri, 21 Oct 2022 11:22:53 +0530 Subject: [PATCH 2/2] Rename QUIZE GAME to QUIZEGAME.py --- QUIZE GAME => QUIZEGAME.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename QUIZE GAME => QUIZEGAME.py (100%) diff --git a/QUIZE GAME b/QUIZEGAME.py similarity index 100% rename from QUIZE GAME rename to QUIZEGAME.py