title: How to change value inputted by user to corresponding dictionary value
body: <p>I am asking the user of the program to enter the number that corresponds to the measurement for it to be easier for them to right the answer. Is there a way to change their value to the value that corresponds to the list. Or if I made a new dictionary that had the number and name of the unit? I need to put the unit in word form eg "Teaspoon" into a list. Instead of using:</p>
  
  <pre><code>if unit == 2:
       unit = "Tablespoon"
  </code></pre>
  
  <p>and so on for every unit. Is there a more concise way to do this?</p>
  
  <p>This is my code:</p>
  
  <pre><code>measurement=["Teaspoon","Tablespoon","Cup","Pinch","Grams"]
  for i in range(len(measurement)):
      print(i+1, measurement[i])
  unit = int(input("Enter number for the unit of the ingredient: "))
  units = {1:"Teaspoon",2:"Tablespoon",3:"Cup",4:"Pinch",5:"Grams"}
  </code></pre>
  
  <p>I added this dicationary at the end because I thought this might be a good way of converting each number to the corresponding unit. </p>