Python Program: QuizBrain

By carriekaler Mar18,2024

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.

  1. Choose ‘Open in Replit’
  2. Select ‘Run’ to play/replay the game.
  3. Enter answers into the console where you see the tiny square at the end of sentences.

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *