- 2
Input
x=input("enter the user id") print ("connection timeout") if no input is given. can it will execute the statements after this.
14 Respuestas
+ 13
for 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
+ 3
It will print something like this if input is not given.
enter the user idconnection timeout.
Donna is right about it.
+ 3
+ 2
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?
+ 2
exactly
+ 2
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.
+ 1
u guys are clicking on submit with no input
don't want do that also
it should automatically print next statement now tell me?
+ 1
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
+ 1
😊
0
no it will not
0
no plz check
0
without giving input from keyboard it will not go to next line
0
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
0
it will actually work with combination of signals. a bit complex code