class Product:
def __init__(self, name, price):
self.name = name
self.price = price
def get_total(self, units):
result = self.price * units
return result
class Cart:
def __init__(self):
self.list_product = list()
self.units = list()
def add(self, product, units):
...