Shopping

Report a typo

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.

Write a program in Python 3
class Store:
def __init__(name, category):
name = self.name

shop = Store("GAP", "clothes")
print(shop.name, shop.category)
___

Create a free account to access the full topic