Skip to content
Snippets Groups Projects
Commit 9fbfd295 authored by Louis Chmielewski's avatar Louis Chmielewski
Browse files

__repr__ class Card

parent 6d9ac2c5
No related branches found
No related tags found
No related merge requests found
...@@ -67,11 +67,11 @@ class Card(object): ...@@ -67,11 +67,11 @@ class Card(object):
""" """
return a string representation of the card return a string representation of the card
$$$ Card('Ace', 'heart') $$$ repr(Card('Ace', 'heart'))
Card("Ace", "heart") 'Card("Ace", "heart")'
""" """
... return f"Card(\"{self.value}\", \"{self.color}\")"
def compare(self, card: Card) -> int: def compare(self, card: Card) -> int:
""" """
compares cards. compares cards.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment