title: remove last STDOUT line in Python
body: <p>I am trying to figure out how to suppress the display of user input on stdout.</p>
  
  <p><code>raw_input()</code> followed by any print statement preserves what the user typed in. <code>getpass()</code> does not show what the user typed, but it does preserve the "Password:" prompt.</p>
  
  <p>To fix this, I would like to only remove the last line (which would remove the newline from the end of the line as well).</p>