title: Increasing understanding of the Python read() and open() functions
body: <p>Using the read() and open() functions whilst using Python 3.7</p>
  
  <p>Is there a reason that <code>open()</code> is documented but <code>read()</code> is not?</p>
  
  <p><a href="https://docs.python.org/3.7/library/functions.html" rel="nofollow noreferrer">https://docs.python.org/3.7/library/functions.html</a></p>
  
  <pre><code>from sys import argv
  
  script, filename = argv
  
  txt = open(filename)
  
  print(f"Here's your file {filename}:")
  print(txt.read())
  
  print("Type the filename again:")
  file_again = input("&gt; ")
  
  txt_again = open(file_again)
  
  print(txt_again.read())
  </code></pre>