Input | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Input

x=input("enter the user id") print ("connection timeout") if no input is given. can it will execute the statements after this.

11th Jun 2018, 2:51 AM
Kesava N
Kesava N - avatar
14 Answers
+ 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
11th Jun 2018, 5:10 AM
Ahri Fox
Ahri Fox - avatar
+ 3
It will print something like this if input is not given. enter the user idconnection timeout. Donna is right about it.
11th Jun 2018, 3:18 AM
Akash Pal
Akash Pal - avatar
11th Jun 2018, 3:34 AM
Akash Pal
Akash Pal - avatar
+ 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?
11th Jun 2018, 4:28 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 2
exactly
11th Jun 2018, 4:29 AM
Kesava N
Kesava N - avatar
+ 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.
11th Jun 2018, 4:35 AM
Faisal
Faisal - avatar
+ 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?
11th Jun 2018, 3:42 AM
Kesava N
Kesava N - avatar
+ 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
11th Jun 2018, 3:55 AM
Kesava N
Kesava N - avatar
+ 1
😊
11th Jun 2018, 3:59 AM
Kesava N
Kesava N - avatar
0
no it will not
11th Jun 2018, 3:07 AM
Kesava N
Kesava N - avatar
0
no plz check
11th Jun 2018, 3:23 AM
Kesava N
Kesava N - avatar
0
without giving input from keyboard it will not go to next line
11th Jun 2018, 3:24 AM
Kesava N
Kesava N - avatar
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
11th Jun 2018, 3:52 AM
Kesava N
Kesava N - avatar
0
it will actually work with combination of signals. a bit complex code
11th Jun 2018, 3:52 AM
Kesava N
Kesava N - avatar