Domanda di colloquio di Samsara

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

Risposta di colloquio

Anonimo

26 set 2018

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