title: Trying to create a lookup function in python
body: <p>I have to create a dictionary using a list filled with tuples. Every tuple should be a pair, e.g. (word, description_of_said_word).
  So far I have this: </p>
  
  <pre><code>banana = ("banana", "a yellow fruit")
  orange = ("orange", "a orange fruit")
  apple = ("apple", "a green fruit") 
  my_list = [banana, orange, apple]
  
  def lookup():
      word = raw_input("Word to lookup: ")
      print ("\n")
      n = my_list.index(word)
      x = my_list[n][0]
      y = my_list[n][1]
      if word == x:
         print x, ":", y, "\n"
      else:
         print("That word does not exist in the dictionary")
  lookup()
  </code></pre>
  
  <p>When I write in banana I get an error saying, "ValueError: 'banana' is not in the list". What am I doing wrong? </p>