def allCards() -> list: cards = [] for suit in Card.allSuits(): for rank in Card.allRanks(): cards.append(Card(suit, rank)) return cards