Skip to content

A minimal example of nbdev using code from Allen Downey's Think Python 2nd Ed

License

Notifications You must be signed in to change notification settings

arneso-ssb/deck_of_cards

 
 

Repository files navigation

Deck of Cards

Install

After cloning this repository:

pip install -e .

There is already a project called deck_of_cards on pypi. This project has no relation to that. This project is an example of how to create python packages with nbdev.

How to use

Playing cards in python!

from deck_of_cards.deck import Deck
d = Deck()
print(f'Number of playing cards in the deck: {len(d.cards)}')
Number of playing cards in the deck: 52
card = d.pop_card()
print(card)
King of Spades

See the docs for more info.

About

A minimal example of nbdev using code from Allen Downey's Think Python 2nd Ed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 68.2%
  • Python 29.2%
  • Makefile 2.6%