title: How to export all print to a .txt file in Python?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4675728/redirect-stdout-to-a-file-in-python">Redirect stdout to a file in Python?</a>  </p>
  </blockquote>
  
  
  
  <p>I've finally finished all the code for my project. Now I need all of the things that are labelled "print" to actually be exported into a .txt document. How would I go about doing that?</p>