Skip to content

Commit ee0911a

Browse files
authored
Merge pull request Python-World#493 from BIGG000/master
update
2 parents 10fc2f0 + 4fc3193 commit ee0911a

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

‎projects/Games/QuizGame.py‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
print(" Welcome To My Quiz Game \n Interesting Game to Play")
2+
Player = input(" Do you want to play the game? \n" )
3+
if Player.lower() != 'yes':
4+
print("Good Bye")
5+
quit()
6+
7+
name_player = input("Enter Your Name: ")
8+
9+
print("Let's Start the Game :) ",name_player)
10+
11+
score = 0
12+
13+
answer = input(' What is CPU stands for? \n ')
14+
if answer.lower() == 'central processing unit':
15+
print("Correct")
16+
score += 1
17+
else:
18+
print('Wrong')
19+
20+
answer = input(' What is GPU stands for? \n ')
21+
if answer.lower() == 'graphical processing unit':
22+
print("Correct")
23+
score += 1
24+
else:
25+
print('Wrong')
26+
27+
answer = input(' What is RAM stands for? \n ')
28+
if answer.lower() == 'random access memory':
29+
print("Correct")
30+
score += 1
31+
else:
32+
print('Wrong')
33+
34+
answer = input(' What is ROM stands for? \n ')
35+
if answer.lower() == 'read only memory':
36+
print("Correct")
37+
score += 1
38+
else:
39+
print('Wrong')
40+
41+
answer = input(' Mouse is an input device or output device? \n ')
42+
if answer.lower() == 'input device':
43+
print("Correct")
44+
score += 1
45+
else:
46+
print('Wrong')
47+
48+
print("You got the " + str(score)+ " correct answers")
49+
print("You got the " + str((score/5) *100)+ " correct answers")

0 commit comments

Comments
 (0)