title: Can you break a while loop from outside the loop?
body: <p>Can you break a while loop from outside the loop? Here's a (very simple) example of what I'm trying to do: I want to ask for continuous inside a While loop, but when the input is 'exit', I want the while loop to break!</p>
  
  <pre><code>active = True
  
  def inputHandler(value):
      if value == 'exit':
          active = False
  
  while active is True:
      userInput = input("Input here: ")
      inputHandler(userInput)
  </code></pre>