14 Answers
New Answerfor what you want to do with a timer you have to do it outside of code playground and on another platform like a pc. and also you'll need keypress detection and character by character printing. which is possible (I've done it) but aren't included in Sololearn courses so you'll have to look it up
It will print something like this if input is not given. enter the user idconnection timeout. Donna is right about it.
See that it still execute Donna is right Kesava N https://code.sololearn.com/cx70958Ps5bZ/?ref=app
Kesava N So basically, what you mean is when you run the program, you want a timer to start. And when the timer reaches a time limit and the user still haven't entered anything or haven't clicked submit, you want to execute the "connection timeout" statement. Did I get it correctly?
Kesava N When working inside the code playground, you can't affect anything outside of the console (e.g. the input box), so you wouldn't be able to do anything about it.
u guys are clicking on submit with no input don't want do that also it should automatically print next statement now tell me?
Donna practically it related to ATM machines. like in card to card transactions when user insert card and simply not doing/entering anything it will display connection timed out now u get what I am asking
u guys are e not get ting me. Donna I said don't click on enter/submit even no input is given don't even press anything from keyboard
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message