Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 999 Bytes

README_en.md

File metadata and controls

27 lines (20 loc) · 999 Bytes

Random-Math-Problem-Generator

This project is a simple random math problem generator that can generate addition and subtraction problems within 10 or 20. The generated problems can be used for students' math practice.

English README.md

# Random Math Problem Generator

This project is a simple random math problem generator that can generate addition and subtraction problems within 10 or 20. The generated problems can be used for students' math practice.

## Features

- Generates a specified number of random addition and subtraction problems.
- Adds a separator line every 10 problems for easy viewing.
- Adds a Word-compatible page break every 100 problems for easy printing.
- Adds x2 which means multi-problems like: `3+6-2=___`

## Usage

1. Ensure that Python is installed on your computer.
2. Save the code as `python 0to10.py / python 0to20.py`.
3. Run the script in the terminal or command line:
   ```shell
   python 0to10.py
   python 0to20.py
   python ...