Write a program to read the marks and assign a grade to a student. Grading system: A (>=90), B (80–89), C (70–79), D (60–69), E (50–59), F (<50). (Use the Switch case)
Write a program to read the marks and assign a grade to a student. Grading system: A (>=90), B (80–89), C (70–79), D (60–69), E (50–59), F (<50). (Use the Switch case)
Python Program to Read Marks and Assign a Grade to a Student
Introduction
In this blog post, we will learn how to write a Python program to read marks and assign a grade to a student. We will use the switch case statement to assign grades based on the marks obtained by the student. The grading system will be as follows: A (>=90), B (80–89), C (70–79), D (60–69), E (50–59), F (<50).
https://play.google.com/store/apps/details?id=com.computerdictionary.mcqtutorial.computerbitspradip

Table of Contents
- Understanding the Grading System
- Writing the Python Program
- Testing the Program
Understanding the Grading System
Before we start writing the program, let’s understand the grading system. The grading system is based on the marks obtained by the student. The grades are assigned as follows:
- A (>=90)
- B (80–89)
- C (70–79)
- D (60–69)
- E (50–59)
- F (<50)