class Card: #rank will be int 2-14 #suit will be int 1-4 def __init__(self, rank, suit): self.rank = rank self.suit = suit def printCard(self): if self.rank == 11: tmprank = "Jack" elif self.rank == 12: tmprank = "Queen" elif self.rank == 13: tmprank = "King" elif self.rank == 14: tmprank = "Ace" else: tmprank = str(self.rank) if self.suit == 1: tmpsuit = "Clubs" elif self.suit == 2: tmpsuit = "Diamonds" elif self.suit == 3: tmpsuit = "Hearts" elif self.suit == 4: tmpsuit = "Spades" else: tmpsuit = "BAD SUIT" print tmprank, " of ", tmpsuit