Find the mistakes in the __init__ method of the class Store and fix them so that the attributes of the object shop would be printed out correctly.
Class instances
Shopping
Report a typo
Write a program in Python 3
class Store:
def __init__(name, category):
name = self.name
shop = Store("GAP", "clothes")
print(shop.name, shop.category)
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.