In this repo you'll find the final projcet of my Learn Python in 30 Days online course. The final project is a Python Learning App, read through how it works below. Don't hesitate to reach out with any questions!
The app's purpose is to quiz que user with Python questions, determine if the user gets them right or wrong and finally calcualte and save the final score. Here's how the app should work.
- When running
main.py
, the script reads through thetopics.json
,questions.json
, andpast_scores.json
files and prints the welcome page below to the user:
- The user then inputs a number referencing the topic to get quizzed. Let's say the user inputs "2", this would take take them to the quiz on Lists and start prompting the questions on that topic.
Whenever the user enters an invalid input, they are prompted over and over until they enter a valid question or enter "q" to quit.
When they get the right answer, the program prints a message to the user saying they got it right.
Whenever the user enters the wrong answer, the app lets them know as well.
- Once the user finishes answering all questions on that topic (which is maxed out to 10 questions per run), the app prints the final score for that run and saves the score into
past_scores.json
.