I am designing a game in which I require the input function to accept input without requiring the user to press the enter key. Also,once the user enters a single character,the variable in which the input is supposed to be stored must contain that character at once(as if the user had pressed the enter key after entering that character). The character entered must be displayed on screen only if it satisfies a given condition. Please enlighten me on how I can achieve this. Thank you.
NOTE:I am a beginner in Python, hence please do not delve into things that are way beyond my comprehension.My teacher has forbidden us from using classes for our project. I should be able to utilize the characters displayed on screen which I don't find possible using the solutions given for other similar questions.