title: Distributing numbers in SuDoku
body: <p>I am creating a SuDuko Generator, and am trying to distribute my 1's to every single box. To do this, I have created a list with two items (acting a coordinates). After the function has run, it returns a list such as <code>[a, 1]</code>. I then want a quick way to assign a variable <code>a1</code> to <code>1</code> (<code>a1</code> would be the variable I would want if <code>[a, 1]</code> was returned and <code>1</code> because I'm trying to distribute my 1's). Is there a way to do this? If so how? Here is the source code:</p>
  
  <pre><code>import random
  def func():
      rows1 = ['a', 'b', 'c']
      rows2 = ['d', 'e', 'f']
      rows3 = ['g', 'h', 'i']
      columns1 = [1, 2, 3]
      columns2 = [4, 5, 6]
      columns3 = [7, 8, 9]
      letter1 = random.choice(rows1)
      number1 = random.choice(columns1)
      random1 = [letter1, number1]
      rows1.remove(letter1)
      columns1.remove(number1)
      letter2 = random.choice(rows1)
      number2 = random.choice(columns2)
      random2 = [letter2, number2]
      rows1.remove(letter2)
      columns2.remove(number2)
      letter3 = random.choice(rows1)
      number3 = random.choice(columns3)
      random3 = [letter3, number3]
      columns3.remove(number3)
      letter4 = random.choice(rows2)
      random4 = [letter4, number4]
      rows2.remove(letter4)
      columns1.remove(number4)
      letter5 = random.choice(rows2)
      number5 = random.choice(columns2)
      random5 = [letter5, number5]
      rows2.remove(letter5)
      columns2.remove(number5)
      letter6 = random.choice(rows2)
      number6 = random.choice(columns3)
      random6 = [letter6, number6]
      columns3.remove(number6)
      letter7 = random.choice(rows3)
      number7 = random.choice(columns1)
      random7 = [letter7, number7]
      rows3.remove(letter7)
      letter8 = random.choice(rows3)
      number8 = random.choice(columns2)
      random8 = [letter8, number8]
      rows3.remove(letter8)
      letter9 = random.choice(rows3)
      number9 = random.choice(columns3)
      random9 = [letter9, number9]
      return  (random1, random2, random3)    #etc
  </code></pre>
  
  <p>Thanks in advance</p>