class Student: def __init__(self,m1,m2): self.m1=m1 self.m2=m2 def add(self,s1,s2): summ1 = self.m1 + self.m2 summ2 = s1.m1 + s1