title: Ending a program
body: <p>How do I end my program if something is true?</p>
  
  <p>This is my code</p>
  
  <pre><code>  count=0
  
    num=input("What would you like to do [1,2,3,4]? ")
    while (num&gt;'0' and num&lt;'5'):
        while num=='1':
          Do something
        while num=='2':
          Do something
        While num=='3':
          Do something
        while num=='4' and count!=1:
  
           print("The End")
           count= count+1
  </code></pre>
  
  <p>I want the program to end while num is '4'</p>