I am trying to make an input for a four digit number, and exactly when I finish typing the number I want the number to input.
Asked
Active
Viewed 56 times
0
-
Hello and welcome to StackOverflow. Please take some time to read the help page, especially the sections named ["What topics can I ask about here?"](http://stackoverflow.com/help/on-topic) and ["What types of questions should I avoid asking?"](http://stackoverflow.com/help/dont-ask). And more importantly, please read [the Stack Overflow question checklist](http://meta.stackexchange.com/q/156810/204922). You might also want to learn about [Minimal, Complete, and Verifiable Examples](http://stackoverflow.com/help/mcve). – Ahmet Emre Kilinc Nov 18 '17 at 14:37
-
Are yo familiar with the [`input`](https://docs.python.org/3/library/functions.html#input) function? – Patrick Haugh Nov 18 '17 at 14:37
-
2@PatrickHaugh OP wants to take an input of length four without the user having to press enter. – timgeb Nov 18 '17 at 14:41
-
@AhmetEmreKılınç how would an MCVE for this problem look like? There's not much you can *try* here without any knowledge. – timgeb Nov 18 '17 at 14:41
-
Apply duplicate four times. – timgeb Nov 18 '17 at 14:47
-
What should happen if they enter three digits and then a letter? – alex Nov 18 '17 at 14:54