class Item:
def __init__(self, name, cost):
self.name = name
self.cost = cost
charm = Item("Charm of Capitalism", 20)
talis = Item("Talisman of Truth", 100)
shopArray = [charm, talis]
print("Items for sale: {}" .format(shopArray))
When I print the shopArray the output is
Items for sale: [<__main__.Item object at 0x02174270>, <__main__.Item object at 0x021742B0>]
I want it to display what items are in the shopArray
Any help would be much appreciated