title: Python re - running a program from the top without while
body: <p>I wanted to ask, 
  <Br> Is there a way that you can re - run any sort of program on Python 3.x or 2.x without the need for a while loop?</p>
  
  <p>For instance, is there any block of code that I can use to do this:</p>
  
  <pre><code>if user says yes:
      re - run code from top
  else:
      end program
  </code></pre>
  
  <p>For instance, take this example:</p>
  
  <pre><code>output Hello what would you like to do?
       if user says internet
             response = go to internet.
       if response = true
             go to start.
       else
             end program
  
  def internet
       open web page.
       output Would you like to do anything else?
       if input is yes
            return True
       else
            return False
  </code></pre>
  
  <p>Thanks, 
  Judy. </p>
  
  <p>Note, the code above is a mock - up. </p>