title: Python - How do I get my program to ask for an input repeatedly but still store the other inputs?
body: <p>Basically, my program needs to be able to store recipes. I have to ask the user to input an ingredient along with the quantity and unit. I'm sorry if this is somewhat vague, but how can I program it so that I can ask the user to input multiple ingredients until they've entered the number of ingredients that they need to enter? Thank you very much.</p>
  
  <pre><code>#Ask the user to input ingredient name, quantity and measurement
  
  ingredient = input("Name is your ingredient: ")
  ingredientquantity = int(input("What is the quantity of this ingredient: "))
  ingredientunit = input("What is the unit of your ingredient: ")
  </code></pre>
  
  <p>^^^ This is what I've written so far, but how could this be repeated and <strong>STILL STORE</strong> any previous entries?</p>