Skip to content

The Sports Trivia App is a Python application designed to test your knowledge of sports. The app uses an open trivia database API to randomly generate 10 sports-related questions. The answers to the questions are boolean (True/False).

Notifications You must be signed in to change notification settings

ShakirMA/Sports-Trivia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sports-Trivia

The Sports Trivia App is a Python application designed to test your knowledge of sports. The app uses an open trivia database API to randomly generate 10 sports-related questions. The answers to the questions are boolean (True/False).

Installation

To use the Sports Trivia App, follow these steps:

Clone this repository: git clone https://github.com/ShakirMA/Sports-Trivia.git Navigate to the project directory: cd Sports-Trivia Install the required dependencies: pip install -r requirements.txt Run the app: python app.py

Usage

Upon running the app, you will be presented with a series of 10 randomly generated sports-related questions. Each question will have a True/False answer.

To answer a question, Click "True" or "False" button. The app will then indicate if your answer is correct or incorrect, and keep track of your score. At the end of the quiz, your score will be displayed.

API

The Sports Quiz App uses the Open Trivia Database API to generate the quiz questions. The API documentation can be found at https://opentdb.com/api_config.php.

Dependencies

The Sports Quiz App requires the following dependencies:

requests

These dependencies are listed in the requirements.txt file and will be installed when you run pip install -r requirements.txt.

License

The Sports Quiz App is licensed under the MIT license. See the LICENSE file for more information.

About

The Sports Trivia App is a Python application designed to test your knowledge of sports. The app uses an open trivia database API to randomly generate 10 sports-related questions. The answers to the questions are boolean (True/False).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages