Skip to content

dotnetgenetics/Python-Quiz-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Python Learning!

In this repo, you'll find the final project of my Learn Python in 30 Days online course as well as a folder (called "solutions") with solutions to the course's "Understand" section daily exercises. The final project is a Python Learning App, read through how it works below. Don't hesitate to reach out with any questions!

Final Project - Python Learning App

The app's purpose is to quiz the user with Python questions, determine if the user gets them right or wrong, and finally calculate and save the final score. Here's how the app should work.

  1. When running main.py, the script reads through the topics.json, questions.json, and past_scores.json files and prints the welcome page below to the user:

image

  1. The user then inputs a number referencing the topic to get quizzed. Let's say the user inputs "2", this would take them to the quiz on Lists and start prompting the questions on that topic.

image

Whenever the user enters an invalid input, they are prompted over and over until they enter a valid question or enter "q" to quit.

image

When they get the right answer, the program prints a message to the user saying they got it right.

image

Whenever the user enters the wrong answer, the app lets them know as well.

image

  1. 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.

image

About

Final project for the Skillshare class 30 Days of Python: Coding for Beginners

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages