It is a simple Quiz Game with colorful output. In this game, one multiple-choice question will be display & the user have to answer that question. To get a question I use The Open Trivia Database. It provides a completely free JSON API for use in programming projects. Use of this API does not require an API Key, just generate the URL below use it in your application to retrieve trivia questions.
"C:\Program Files\Python39\python.exe" "C:/Users/Admin/PycharmProjects/My Project/Quiz.py" What European country is not a part of the EU? A) Ireland B) Lithuania C) Norway D) Czechia Select the correct option: A Sorry, Ireland is incorrect. The correct answer is: Norway Press enter to play again or type 'quit' to quit the game. What is the shape of the toy invented by Hungarian professor Ernő Rubik? A) Cylinder B) Sphere C) Cube D) Pyramid Select the correct option: C Congratulations! You answered correctly! Press enter to play again or type 'quit' to quit the game. After India, which country produces the second most movies per year? A) Nigeria B) China C) France D) United States Select the correct option: Input can't be empty. Please enter valid input. Select the correct option: C Sorry, France is incorrect. The correct answer is: Nigeria Press enter to play again or type 'quit' to quit the game. What does GHz stand for? A) Gigahotz B) Gigahetz C) Gigahertz D) Gigahatz Select the correct option: s Invalid option Select the correct option: 1 Invalid option Select the correct option: b Sorry, Gigahetz is incorrect. The correct answer is: Gigahertz Press enter to play again or type 'quit' to quit the game.quit ------- Score Board ------- Correct answers : 1 Incorrect answers : 3 --------------------------- Thanks for playing 🌝 Process finished with exit code 0