A simple, interactive Python program that calculates student grades based on marks entered between 0 and 100. Perfect for learning **input validation, conditional statements**, and **loops** in Python.
- User-friendly command-line interface
- Input validation for marks (0–100)
- Auto-grade assignment based on marks
- Option to calculate multiple grades in one session
- Handles invalid inputs gracefully
| Marks Range | Grade |
|---|---|
| 90 – 100 | A+ |
| 80 – 89 | A |
| 70 – 79 | B+ |
| 60 – 69 | B |
| 50 – 59 | C |
| 40 – 49 | D |
| 0 – 39 | F |
- Clone the repository
git clone https://github.com/mantrapatil03/python-beginner-friendly-projects/student-grade-calculator.git
cd student-grade-calculator
- Run the program
Make sure you have Python 3.x installed.
python Student_Grade_Calculator.py
Student Grade Calculator
Enter the marks (0-100): 85
Marks: 85.0
Grade: A
Do you want to calculate another grade? (y/n): y
Enter the marks (0-100): 43
Marks: 43.0
Grade: D
Do you want to calculate another grade? (y/n): n
Thank you for using the Student Grade Calculator!
student-grade-calculator/
│── Student_Grade_Calculator.py # Main program file
│── README.md # Project documentation
Mantra Patil
💼 LinkedIn: www.linkedin.com/in/mantrapatil25
✉ Email: techmantrapatil@gmail.com