write a method to shuffle the deck of cards
Anonymous
def shuffle(self): n=len(self.cards) for i in range(n): r_index=randint(i,n-1) self.cards[r_index],self.cards[i]=self.cards[i],self.cards[r_index]
Check out your Company Bowl for anonymous work chats.