class Comp():
def init(self,re=1,im=0):
self.__re=round(re,2)
self.__im=round(im,2)
def str(self):
pass############your code
- def __gt__(self,other):
- pass############your code
-
- def __lt__(self,other):
- pass############your code
- def __ge__(self,other):
- pass############your code
- def __le__(self,other):
- pass############your code
- def __eq__(self,other):
- pass############your code
- def __ne__(self,other):
- pass############your code
- def __add__(self,other):
- pass############your code
- def __add__(self,other):
- pass############your code
- def __sub__(self,other):
- pass############your code