

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 8
click for more info
Not enough gems
Cost: 6 gems
1: Abstraction
incomplete
2: Abstraction vs. Encapsulation Quiz
incomplete
3: Sprint
incomplete
4: How OOP Developers Think
incomplete
5: Abstraction Practice
incomplete
This lesson's interactive features are locked, please to keep using them
Let's work on a prototype card game that will eventually be added to Age of Dragons.
Finish the DeckOfCards class. The SUITS and RANKS of each card have been provided for you as class variables. You won't need to modify them, but you will need to use them.
Order matters! The cards should be appended to the list in the following order: all ranks of hearts, then diamonds, then clubs, and finally spades. Within each suit, the cards should be ordered from lowest rank (Ace) to highest rank (King).
In Python, it's a common convention to write constant values in ALL_CAPS.