Python User Input control: How to allow the user to reenter one of the values he typed in?
<p>I am writting a script that parses through localy saved archived log files for strings. After a feedback from a user, I would like to implement a feature allowing users to reenter a string they "messed up" in any manner. Is there a way to do this based on captured key combination for example in python? This is the list of user inputs I am collecting:</p>

<pre><code>serverID = raw_input ("Description: ")
containerID = raw_input ("Description: ")
logtime = raw_input ("Description: ")
andor = raw_input ("Description: ")
string1 = raw_input ("Description: ")
string2 = raw_input ("Description: ")
string3 = raw_input ("Description: ")
string4 = raw_input ("Description: ")
afterIn = raw_input ("Description: ")
beforeIn = raw_input ("Description: ")
</code></pre>

<p>It is quite true that if they mess up afterIn and have to enter everything again, it may not be optimal, hence the question.</p>
