Math-Fractions is a simple Python project designed to help learners understand fractions visually and mathematically. It includes three main functionalities:
- Input a numerator and denominator (e.g.,
1/4) - Draw a circle divided into equal parts using Turtle graphics
- Shade the parts according to the fraction, making fractions easy to visualize
- Input two fractions (e.g.,
1/2and3/4) - Compare which fraction is larger using decimal conversion
- Prints the result in a readable format
- Add two fractions with the same denominator
- Display the result, including mixed numbers if needed
- Automatically simplifies fractions when possible
- Visual representation of fractions
- Simple and clear comparison of two fractions
- Automatic fraction addition and simplification
- Beginner-friendly Python scripts
- Great for homework, tutorials, or personal learning projects
- Students learning math
- Educators teaching fractions
- Python enthusiasts exploring Turtle graphics and basic arithmetic operations
python --version
pip install turtle
python draw_fraction.py
python compare_fractions.py
python add_fractions.pypython3 --version
pip3 install turtle
python3 draw_fraction.py
python3 compare_fractions.py
python3 add_fractions.py