title: calling functions with user input and while loops
body: <p>thank you for your answers, I have since changed it a bit but keen getting an infinite loop. when the user enters option 1-5 inclusive it moves on, but if the user enters 6 or more it will keep asking for a valid option (1-5), but when this runs, even when i give an option from 1-5 it keeps saying it is invalid. </p>
  
  <pre><code>def get_user_input(): 
      user_input = int(input("Enter your choice: ")) 
      while user_input &gt; 5: 
          print("Invalid menu option.") 
          int(input("Please try again: ")) 
      if user_input &lt;= 5: 
          return user_input 
  </code></pre>