def __add__(self , other): if self.deg != other.deg: return False else: return monome(self.coef + other.coef , self.deg) def __sub__(self , other): if self.deg != other.deg: return False else: return monome(self.coef - other.coef , self.deg) def __mul__(self , other): return monome(self.coef * other.coef , self.deg + other.deg)