32
loading...
This website collects cookies to deliver better user experience
* Build a terminal program using Python
* Add at least one interactive feature using input()
* Use Git version control
* Use the command line and file navigation
* Write a technical blog post on the project
Card
class that takes in the following parameters for its constructor: self, id, name, suit, value, visibility = True
. Using a for
loop, I generated a deck of 13 cards for each of the four suits (Diamond, Club, Spade, and Hearts).random.sample()
.deal_card
function that pops the first card of the deck into the user's hands. if
statements. This should be refactored.