Samsara Interview Question

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

Interview Answer

Anonymous

Sep 26, 2018

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