Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.22 KB

File metadata and controls

39 lines (30 loc) · 1.22 KB

Math Game

It's just a simple math game. Improve your math skills

Library used

import random and import operator

How to run the script

python math_game.py

How to play

  1. Choose a difficulty level: easy, medium, or hard
  2. Choose how many questions you want to answer
  3. Type your answer for each math question
  4. See your final score and percentage at the end

Difficulty levels

Level Number Range Operations
Easy 1 – 10 + and -
Medium 1 – 20 + - * /
Hard 1 – 50 + - * /

Division questions always produce whole number answers.

Changes from original

  • Added difficulty levels (easy, medium, hard)
  • Added question limit — choose how many questions per game
  • Added final score percentage at the end
  • Fixed division to always produce clean whole number answers
  • Simplified input error handling

Screenshot

Author Name

Pargorn Ruasijan (xNewz)

Contributor Name

Megha Chandrashaker