I have a class Com
class Com:
def __init__(self, a: float, b: float):
self.a = a
self.b = b
and in the class this function:
def add(comp: "Comp", *comps: "Com") -> "Com":
with this input:
c1 = Com(5.0, 10.0)
c2 = Com(7.0, 100.0)
c_sum = Com.add(c1, c1, c2, Com(33.75, -14.25))
I don't understand how I can access the parameters of the add() function and work with them. Can someone explain it?