← 全部工具

rajaryansingh23/GK-Quiz

热度 70 更新于 开发与构建

A simple command-line General Knowledge Quiz built with Python. It asks multiple questions, checks answers, keeps score, and demonstrates the use of variables, user input, and conditional statements.

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

🧠 Python General Knowledge Quiz

A simple command-line General Knowledge Quiz built using Python. It asks users multiple-choice/general questions, checks their answers, keeps score, and displays the final result.

✨ Features

  • ❓ 5 General Knowledge questions
  • ✅ Checks user answers
  • 🎯 Score counter (+1 for each correct answer)
  • 💬 Displays the correct answer if the user is wrong
  • 🏆 Shows a winning message for a perfect score
  • 🚪 Ends the quiz after displaying the final score

🛠️ Built With

  • Python 3

📚 Concepts Used

  • Variables
  • User Input (input())
  • Conditional Statements (if, else)
  • String Methods (lower())
  • Comparison Operators (==)
  • Arithmetic Operators (+=)
  • Print Statements
  • Sequential Program Flow

🚀 How to Run

  • Clone this repository:
git clone https://github.com/rajaryansingh23/GK-Quiz.git
  • Open the project folder:
cd GK-Quiz
  • Run the program:
python GK_quiz.py

📂 Project Structure

GK-Quiz/
└── GK_quiz.py