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 that you can use to create, display, and compare playing cards:
Card(1, 3)
3 ♠
Suits are numbered according to this list:
suits
['♣', '♠', '♦', '♥']