diff --git a/Tp08/card.py b/Tp08/card.py index 94d1b1a1352ad9ce79d65ccb0f1c6992bddbff0f..df725a85a9971c1638a2d429f1c604e902e10f0c 100755 --- a/Tp08/card.py +++ b/Tp08/card.py @@ -67,11 +67,11 @@ class Card(object): """ return a string representation of the card - $$$ Card('Ace', 'heart') - Card("Ace", "heart") + $$$ repr(Card('Ace', 'heart')) + 'Card("Ace", "heart")' """ - ... - + return f"Card(\"{self.value}\", \"{self.color}\")" + def compare(self, card: Card) -> int: """ compares cards.