Think Python: How to Think Like a Computer Scientist

(singke) #1

the 2 of Clubs.


To create a Card, you call Card with the suit and rank of the card you want:


queen_of_diamonds   =   Card(1, 12)
Free download pdf