title: Is there anyway to end the program without using break?
body: <p>I got a program when input a number they show some command and when i put in number 4 i want it print goodbye and end the program. I know there is a way is use break but my teacher dont want to use it . Is there any other way to end it when enter number 4 ? Thank in advance : 
  PS : i just new leaner to Python.</p>
  
  <pre><code>while True  :
       num= int(input("enter : "))
  
      if num == 1:
         print("encrypt text")
      elif num == 2 :
          print("decrypt text")
      elif num == 3 :
          print("Brute force decrypt")
      elif num ==4 :
          print("goodbye")
      else :
              print('false')
  </code></pre>