Checking text as you write it <p>I am writing a function (in Python 3) which will allow someone to revise a set text.</p> <p>Set texts (in this situation) are pieces of text (I am doing the <em>Iliad</em>, for example) which you need to learn for an exam. In this function I am focusing on a user trying to learn the translation of the text off by heart.</p> <p>In order to do this, I want to write the translation in a text file, then the user can test themselves by writing it up, and the program will check whether each word is correct by checking it against the known, correct translation.</p> <p>I know I could simply use <code>input()</code> for this, but it is inadequate as the user would have to type the entire text, or small parts, at a time for this to work, and I want to correct as they type in order for them to remember their mistakes more easily.</p> <p>I have not written any code yet as how I write the rest of the program will depend on how I code this part.</p>