pyBegin / projects / online-trivia

Online Trivia

A console trivia quiz that fetches true/false questions from the Open Trivia Database API. It displays each question, accepts the player's answer,…

72 lines🖥 Desktop only

Online Trivia

A console trivia quiz that fetches true/false questions from the Open Trivia Database API. It displays each question, accepts the player's answer, keeps score, and shows a final score at the end.

Example

==================================================
		Question number: 1
==================================================
	Difficulty Level: easy
	Category: Science & Nature
==================================================

Question:  The mantis shrimp can see more colors than any other animal on Earth.

Enter Answer (To skip type 'skip'): true
Correct Answer! 
Your score is 1
Wait moving to the next question...
Your final score is 3 !
Thanks for playing! 💜

How to run on localhost

pip install requests
python main.py

Dependencies