Używanie zmiennych z wieloma instancjami klasy Python
class CoffeeOrder:
def __init__(self, coffee_name, price):
self.coffee_name = coffee_name
self.price = price
lucas_order = CoffeeOrder("Espresso", 2.10)
print(lucas_order.coffee_name)
print(lucas_order.price)
paulina_order = CoffeeOrder("Latte", 2.75)
print(paulina_order.coffee_name)
print(paulina_order.price)
Mighty Unicorn