Samsara interview question

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

Interview Answer

Anonymous

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)