An example repository for nbdev
Project description
Deck of Cards
This repo uses code from Allen Downey’s ThinkPython2.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hamel_deck_of_cards-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 027c55a09c5444d6bf1eba1bd605522c052b4bf9f39104347a435439d2e649a3 |
|
MD5 | 856810a0a3c7fb59d61fb30928d69087 |
|
BLAKE2b-256 | 43202ba95c4c58d9e133208160093b4756f522a0c84952cf900f37bd20c5f4b3 |
Close
Hashes for hamel_deck_of_cards-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 439e30ba298df36cd6251abd6a6f828201a652cc8529f0021b258710d19b83d7 |
|
MD5 | e57acc20a7d60c75efb17f6ced825347 |
|
BLAKE2b-256 | f4c6b0bbc23782e2a562ddb617e34f2b45ea9ffe59f3222cc04bb453214ffc2e |