I am expecting obj1 and obj2 will have different deck.cards, why they are the same, how do I make them 2 instance?
class deck:
cards ={}
def __init__(self, key, value):
self.cards[key]=value
return
>>> obj1 = deck("a", "1")
>>> obj2 = deck("b", "2")
>>> print (obj1.cards, obj2.cards)
{'a': '1', 'b': '2'} {'a': '1', 'b': '2'}