title: Can anyone give me a quick tutorial in stdin and stdout in Python 3?
body: <p>I know this sounds like something I can google, but the truth is that I don't find or do not understand what the very few Python 3 sources explains.</p>
  
  <p>So here are my questions:</p>
  
  <ul>
  <li>Is <code>input()</code> the <code>stdin</code> function in Python 3? Does that mean that when you open your filename.py program, the <code>stdin</code> is what the user types?</li>
  <li>Is <code>print()</code> the <code>stdout</code> function in Python 3, or do you have to write to a file?</li>
  <li>For the <strong><a href="http://www.spotify.com/us/jobs/tech/best-before/" rel="noreferrer">Spotify puzzle</a></strong>, is says "Input is read from stdin". What should my file include of <code>stdin</code> and <code>stdout</code>?</li>
  </ul>
  
  <hr>
  
  <p>Update:
  Does that mean that i can use:</p>
  
  <pre><code>import sys
  unfmtdDate = str(sys.stdin.read())
  </code></pre>
  
  <p>...instead of...</p>
  
  <pre><code>unfmtdDate = str(input())
  </code></pre>
  
  <p>?</p>