Skip to content

A Python-based True/False quiz game where users input at least 5 questions with their answers. The program quizzes the user with these questions and provides a final score at the end. Ideal for learning Python basics like lists, loops, and input validation.

Notifications You must be signed in to change notification settings

PR2309/Quiz_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Game - Set of Quiz Questions (Project 09)

πŸ“‹ Description

This Python program allows users to create a quiz with True/False questions and then tests the user's knowledge with randomly selected questions from the set. It also calculates and displays the final score based on correct answers.

πŸš€ How It Works

  • Question Input: Users can input a desired number of questions and their corresponding answers (True/False).
  • Random Selection: The program randomly selects 5 questions from the set and presents them for the user to answer.
  • Score Calculation: For each correct answer, the user's score is increased by 1, and the final score is displayed.

Example:

Enter the number of total questions: 5

Question: Python is a programming language.
Answer: True

Question: The Earth is flat.
Answer: False

...

Question: Python is a programming language.
True

Your score: 4

πŸ›‘ Error Handling

Validates that answers are either True or False. Ensures that the user inputs a minimum of 5 questions to proceed with the quiz.

πŸ”§ Requirements

Python 3.x

About

A Python-based True/False quiz game where users input at least 5 questions with their answers. The program quizzes the user with these questions and provides a final score at the end. Ideal for learning Python basics like lists, loops, and input validation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages