title: Menu python extracting an element from the array
body: <p>I'm exercising studying from the Josh Cogliati tutorial and I've come to <a href="http://www.python.it/doc/Easytut/easytut-it/node10.html" rel="nofollow">this page</a>.
  I've written the <em>test.py</em> example and now I'm trying to write the same exercise, by adding a simple menu that extracts the elements of the list.
  How could I do that?</p>
  
  <p>Here's the code:</p>
  
  <pre><code>true = 1
  false = 0
  
  def get_questions():
      return [["What color is the daytime sky on a clear day?","blue"],\
              ["What is the answer to life, the universe and everything?","42"],\
              ["What is a three letter word for mouse trap?","cat"]]
  
  def check_question(question_and_answer):
      question = question_and_answer[0]
      answer = question_and_answer[1]
      given_answer = raw_input(question)
      if answer == given_answer:
          print "Correct"
          return true
      else:
          print "Incorrect, correct was:",answer
          return false
  def run_test(questions):
      if len(questions) == 0:
          print "No questions were given."
          return
      index = 0
      right = 0
      while index &lt; len(questions):
          if check_question(questions[index]):
              right = right + 1
          index = index + 1
      print "You got ",right*100/len(questions),"% right out of",len(questions)
  
  run_test(get_questions())
  </code></pre>
  
  <p>And here's what I've come to, until now:</p>
  
  <pre><code>index = 0
  menu_item = 0
  while menu_item != 4:
  print "-------------------"
  print "1. Choose question n.1"
  print "2. Choose question n.2"
  print "3. Choose question n.3"
  print "4. Exit"
  menu_item = input("Pick an item from the menu: ")
  if menu_item == 1:
      question = question_and_answer[0]
      answer = question_and_answer[1]
  </code></pre>
  
  <p>Not so much, I know, but I really don't know how to get it done.
  Could someone help me?</p>