title: How can i shuffle the two arrays using functions so that it would print out a random card
body: <p>I wanted it to print a random card by shuffling it through functions
  for example 4 of hearts
  this is current code i had and it kept printing None of None</p>
  <p>Thanks in advance</p>
  <pre><code>
  def exchange(SUITS, i, suits):
      temp = SUITS[i]
      SUITS[i] = SUITS[suits]
      SUITS[suits] = temp
      return SUITS[suits]
  
  def shuffle():
      SUITS = ['Clubs', 'Diamonds', 'Hearts' , 'Spades']
      n = len(SUITS)
      for i in range(n):
          suits = random.randrange(0,n)
          exchange(SUITS,i, suits)
  
  def exchange2(RANKS, i, ranks):
      Temp = RANKS[i]
      RANKS[i] = RANKS[ranks]
      RANKS[ranks] = Temp
      return RANKS[ranks]
  
  def shuffle2():
      RANKS = ['2', ' 3', '4', '5', '6' , '7' , '8', '9','10',
          'Jack', 'Queen', 'King','Ace']
      n = len(RANKS)
      for i in range(n):
          ranks = random.randrange(0,n)
          exchange2(RANKS,i, ranks)
          
  w = shuffle()
  z = shuffle2()
  
  
  print(str(z) + ' of ' + str(w))
  </code></pre>