title: using txt file as input for python
body: <p>I have a python program that requires the user to paste texts into it to process them to the various tasks. Like this:</p>
  <pre><code>line=(input(&quot;Paste text here: &quot;)).lower()
  </code></pre>
  <p>The pasted text comes from a .txt file. To avoid any issues with the code (since the text contains multiple quotation marks), the user has to do the following: type 3 quotation marks, paste the text, and type 3 quotation marls again.</p>
  <p>Can all of the above be avoided by having python read the .txt? and if so, how?</p>
  <p>Please let me know if the question makes sense.</p>