Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

09 - Quiz Application

Python Difficulty: Beginner Phase

What It Does

A multiple-choice quiz engine with questions stored in a separate data module. Features score tracking, percentage calculation, and case-insensitive answer matching.

Run It

python quiz.py

Core Concepts

  • Separating data into external modules (questions.py)
  • Lists of dictionaries for structured data
  • Case-insensitive string comparison
  • Score tracking with percentage calculation
  • Dynamic option display

What You Will Learn

You will learn how to structure data in separate modules, iterate over complex data structures, and build interactive assessment tools.

Project Structure

09-quiz-app/
  README.md
  questions.py
  quiz.py

Example Output

Python Quiz
-----------
Q1: What is the output of print(2 ** 3)?
  A) 6
  B) 8
  C) 9
Your answer: B
Correct!

You scored 4/5 (80.0%)