📅  最后修改于: 2022-03-11 15:04:43.228000             🧑  作者: Mango
class Student():
def __init__(self):
self.name=input()
self.roll_no=input()
self.marks=[int(i) for i in input('enter the marks obtained in three subj
def Display(self):
print('Name:',self.name)
print('Roll no:',self.roll_no)
print('Total marks:',sum(self.marks))
a1=Student()
a1.Display()