Write a python program to calculate total marks percentage and grade of a student
In this exercise, you will learn how to find the grade of a student. For this, we are taking the marks of five subjects and calculating a student's grade based on the percentage of those five subjects.
The following Python program allows a user to enter five different values for five subjects. For this, we have defined a class and taken five parameters from calling the function. Next, we have defined different functions to calculate the total and percentage of those five subjects.
Output of the above code -
need an explanation for this answer? contact us directly to get an explanation for this answerEnter student roll: 101 Enter student name: Priska Kashyap Enter marks of five subjects: Subject 1: 78 Subject 2: 76 Subject 3: 64 Subject 4: 83 Subject 5: 66 101 Priska Kashyap 367 73.4 B PASS