title: Running a part of python code for sometime and then proceed to rest
body: <p>Is there any way to run a part of python code(once) for some time and then proceed to rest of the code.</p>
  
  <pre><code> # time start 
   while #  there is time run the loop
     print("Hello World")
  
   # time end proceed to rest of code
   print("rest of the code being executed")
  </code></pre>