suits
['♣️', '♦️', '❤️', '♠️']
There are 52 cards in a standard playing card deck.
There are 4 suits:
And there are 14 ranks:
Note that the first rank is None
so that numeric ranks correspond to their indices. For example:
Card (suit=0, rank=1)
A standard playing card.
Create a card by passing in numbers representing its suit and rank:
You can compare two cards using Python’s built-in operators: