学生成绩 python
Given students details, marks in 5 subjects and we have to find student's grade.
给学生详细信息,在5门科目中打分,我们必须找到学生的成绩。
In this program, we are taking student name, roll number and marks in 5 subjects and calculating student's grade based on the percentage and printing the all details.
在此程序中,我们将在5个科目中获取学生的姓名,卷号和分数,并根据百分比计算学生的成绩并打印所有详细信息。
使用Python代码查找学生成绩 (Python code to find student grade)
# Python code to find student grade
class Student:
def __init__(self):
self.__roll=0
self.__name=""
self.__marks=[]
self.__total=0
self.__per=0
self.__grade=""
self.__result=""
def setStudent(self):