title: Allow user to choose option from menu with for loop
body: <p>I'm working on part of a program which presents a menu of 3 options to the user. I want to allow the user to enter their menu choice (1-3) after which the menu appears again and allows the user to enter another choice and repeats this process for a total of n times which the user also inputs prior to the menu. </p>
  
  <p>The program is just printing the menu 3 times in a row rather than in n separate iterations but I'm not sure how to fix this. </p>
  
  <pre><code>n = int(input('Please enter the number of iterations:'))
  
  for i in range(0,n):
  
      print('Enter 1 for choice 1\n')
  
      print('Enter 2 for choice 2\n')
  
      print('Enter 3 for choice 3\n')
  
      choice = int(input('Enter your choice:'))
  
      if (choice == 1):
  
      ....
      ....
  
      else:
          print('Invalid choice')
  </code></pre>