Example:
class Card:
def __init__(self,suit,rank):
self.suit=suit
self.rank=rank
class Deck:
def __init__(self):
self.all_cards = []
for suit in suits:
for rank in ranks:
self.all_cards.append(Card(suit,rank))
Can someone please explain how the class attributes for Card stored as? When I access the card class in Deck are the attributes retrieved as a tuple?