Tell us what’s happening:
I believe that I instantiated product correctly and it is not letting me pass.
Your code so far
class Product:
def __init__(self, name: str, price: float) -> None:
self.name = name
self.price = price
def __str__(self) -> str:
return f'{self.name} - ${self.price}'
# User Editable Region
product=Product("Wireless Mouse",50.0)
print(product)
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36
Challenge Information:
Build a Discount Calculator - Step 6