12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- print(" Welcome To My Quiz Game \n Interesting Game to Play")
- Player = input(" Do you want to play the game? \n" )
- if Player.lower() != 'yes':
- print("Good Bye")
- quit()
- name_player = input("Enter Your Name: ")
- print("Let's Start the Game :) ",name_player)
- score = 0
- answer = input(' What is CPU stands for? \n ')
- if answer.lower() == 'central processing unit':
- print("Correct")
- score += 1
- else:
- print('Wrong')
-
- answer = input(' What is GPU stands for? \n ')
- if answer.lower() == 'graphical processing unit':
- print("Correct")
- score += 1
- else:
- print('Wrong')
- answer = input(' What is RAM stands for? \n ')
- if answer.lower() == 'random access memory':
- print("Correct")
- score += 1
- else:
- print('Wrong')
- answer = input(' What is ROM stands for? \n ')
- if answer.lower() == 'read only memory':
- print("Correct")
- score += 1
- else:
- print('Wrong')
- answer = input(' Mouse is an input device or output device? \n ')
- if answer.lower() == 'input device':
- print("Correct")
- score += 1
- else:
- print('Wrong')
-
- print("You got the " + str(score)+ " correct answers")
- print("You got the " + str((score/5) *100)+ " correct answers")
|