A deck of cards demo of nbdev based on ideas from Think Python 2nd Edition by Allen B. Downey.
Install using:
pip install nbdev-cards
or:
conda install -c fastai nbdev-cards
This lib provides a Card class you can use to create, display, and compare playing cards:
Card(1,3)
3♦️
Suits are numbered according to this list:
suits
['♣️', '♦️', '❤️', '♠️']