input: Write a python function to create a deck of playing cards and draw a card from the deck.
  assert len(d.cards)==52
  d.draw_card()
  assert len(d.cards)==51
  d.draw_card()
  assert len(d.cards)==50
output: import random
  
  class Deck:
      def __init__(self):
          suits = ['Hearts', 'Diamonds', 'Clubs', 'Spades']
          ranks = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']
          self.cards = [f"{rank} of {suit}" for suit in suits for rank in ranks]
          random.shuffle(self.cards)
      
      def draw_card(self):
          return self.cards.pop()
  
  d = Deck()