It's just a simple math game. Improve your math skills
import random and import operator
python math_game.py
- Choose a difficulty level:
easy,medium, orhard - Choose how many questions you want to answer
- Type your answer for each math question
- See your final score and percentage at the end
| Level | Number Range | Operations |
|---|---|---|
| Easy | 1 – 10 | + and - |
| Medium | 1 – 20 | + - * / |
| Hard | 1 – 50 | + - * / |
Division questions always produce whole number answers.
- 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
