Skip to content

Instantly share code, notes, and snippets.

@davegotz
Created March 28, 2019 14:09
Show Gist options
  • Select an option

  • Save davegotz/41830162ef326ce3d48b0cd4cb1fb889 to your computer and use it in GitHub Desktop.

Select an option

Save davegotz/41830162ef326ce3d48b0cd4cb1fb889 to your computer and use it in GitHub Desktop.
# Playing Card class, represents a single playing card.
class PlayingCard:
def __init__(self, value, suit):
# Setup the instance variables.
self.value = value
self.suit = suit
self.face_up = False
def main():
test_card = PlayingCard(3, "Spades")
another_card = PlayingCard("Ace", "Spades")
print("Done!")
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment