Skip to main content
Engineering LibreTexts

9: Inheritance

  • Page ID
    15473
  • In this chapter I present classes to represent playing cards, decks of cards, and poker hands. If you don’t play poker, you can read about it at http://en.Wikipedia.org/wiki/Poker, but you don’t have to; I’ll tell you what you need to know for the exercises. Code examples from this chapter are available from thinkpython.com/code/Card.py.

    If you are not familiar with Anglo-American playing cards, you can read about them at http://en.Wikipedia.org/wiki/Playing_cards.

    • Was this article helpful?