title: sys.stdin.readline() reads without prompt, returning 'nothing in between'
body: <p>I have a function that executes the following (among other things): </p>
  
  <pre><code>userinput = stdin.readline()
  betAmount = int(userinput)
  </code></pre>
  
  <p>Is supposed to take input integer from stdin as a string and convert it to an integer.</p>
  
  <p>When I call the function, however, it returns a single newline character (it doesn't even wait for me to input anything).</p>
  
  <p>Earlier in the program I get some input in the form of:</p>
  
  <pre><code>stdin.read(1)
  </code></pre>
  
  <p>to capture a single character.</p>
  
  <p>Could this have something to do with it? Am I somehow writing a newline character to the next line of stdin?</p>
  
  <p>How can I fix this?</p>