title: is there reserved words/keywords to continue after you stop the program?
body: <pre><code>global name_of_file
  
  
  def create():
      global name_of_file
      enter_name_of_file = str(input(&quot;Enter a name of file you want to create: &quot;))
      name_of_file = open(enter_name_of_file+&quot;.txt&quot;, &quot;w&quot;)
      return
  
  
  create()
  
  
  def entry_list():
      rep = int(input(&quot;How many programming language you want to enter?: &quot;))
      for entry in range(rep):
          file_list = str(input(&quot;Enter a programming language: &quot;))
          name_of_file.write(file_list + &quot;\n&quot;)
      return
  
  entry_list()
  
  
  def read():
      global name_of_file
      question = str(input(&quot;\nDo you want to read the file? (Y/N): &quot;))
      if question.upper() == &quot;Y&quot; or question.lower() == &quot;y&quot;:
          file_name = str(input(&quot;Enter the name of the file: &quot;))
          name_of_file = open(file_name, &quot;r&quot;)
          print()
          print(name_of_file.read())
          name_of_file.close()
     elif question.upper() == &quot;N&quot; and question.lower() == &quot;n&quot;:
          name_of_file.close()
     return
  
  
  read()
  </code></pre>
  <p>I created a program to create a file then put a words in it and read it after. But the file will show after all the functions executed. Is there a code that can stop so that the file will show after the entry list function then continue so I can read the file?</p>
  <p>Thank you!</p>