title: Python Using Lists to create program
body: <p>I have an assignment in class to write a program using lists in Python</p>
  
  <p>"Create a program that prompts the user for a vocabulary word. Then prompts user to enter the word's definition. Ask user if they want to enter more words and definitions. When they are done entering all words and definitions, print out all the words along with their definition."</p>
  
  <p>I know I need to have a nested list to store the user input. But my question is how am I going to get the user input and store it into a nested list? I also know that I need to use a loop to take in all the inputs for words and definitions, but I'm confused on how to do so.</p>
  
  <hr>
  
  <pre><code>myvar=str(print(input("Type a Word.")))
  myvar2=str(print(input("Type the word's definition.")))
  myvar3=input(print("If you want to enter another word, enter Y, if not enter N"))
  mylist=[[myvar,myvar2]]
  while myvar3=='Y':
      myvar4=str(print(input("Enter your next word.")))
      myvar5=str(print(input("Enter the word's definition.")))
      mylist.append([myvar4,myvar5])
      myvar3=input(print("If you want to enter another word, enter Y, if not enter N"))
  
  print(mylist)  
  </code></pre>
  
  <p>I think this works, is there anything wrong with this? Do I need to make it to where if they enter "N" it does something to end the loop? Or does the loop just end as long as it doesn't equal 'Y'?</p>