title: Python: Get user input by letting user edit default value
body: <p>I've got a script that pulls text from a Web server. I want to give the user (me) an opportunity to edit that text so they can select which part to keep. Ideally, it would be something like this:</p>
  
  <pre><code>editedText= raw_input(defaultText)
  </code></pre>
  
  <p>So, <code>defaultText</code> is printed, the user edits it and presses enter, and the text as they've edited is assigned to <code>editedText</code>.</p>
  
  <p>Is there a way to do this?<br />
  Thanks!</p>