title: How to decompress a file using python 3.x and gzip
body: <p>I have had help creating a piece of code that compresses a input from a user.The code then transfers this compressed version into a file. The code also sends the input into a file to see how much the file has been compressed.</p>
  
  <pre><code>import gzip, time
  
  plaintext = input("Please enter the text you want to compress: ")
  file_ = open('text.txt', 'w')
  file_.write(str(plaintext))
  file_.close()
  with gzip.open('compressed_file.text' + ".gz", "wb") as outfile:
      outfile.write(bytes(plaintext, 'UTF-8'))
  
  
  with open("data.txt","wb") as fh:
      with open('compressed_file.text.gz', 'rb') as fd:
          fh.write(fd.read())
  </code></pre>
  
  <p>I want some help on how to decompress the file to make the original user input.</p>