100 Days of Code: The Complete Python Pro Boot Camp – Day 17Project
Created a quiz with OOP (Object Oriented Programming).
Walked through creating a quiz with a data.py file for storing questions data, question_model.py to hold question attributes, quiz_brain.py to hold attributes and methods for the quiz itself, and main.py for the main code to execute.
Used Open Trivia Database to get question data from a generated API.
- Choose ‘Open in Replit’
- Select ‘Run’ to play/replay the game.
- Enter answers into the console where you see the tiny square at the end of sentences.