Question d’entretien chez Samsara

design and code a data structure for a card that has three attributes

Réponse à la question d'entretien

Utilisateur anonyme

26 sept. 2018

class Card: def __init__(self, suit, value): self.suit=suit; self.value=value def __repr__(self): return self.suit+' '+str(self.value)