Text in one line | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Text in one line

I try to print the input entry one letter by second and all together in one line, but it's not working, i think the problem is the "end" statement. Why this is happening? https://code.sololearn.com/cCWuc5SZ1S0f/?ref=app

25th Oct 2018, 12:48 PM
Luiz Santos
Luiz Santos - avatar
5 Answers
+ 3
yes because the execution run in sololearn server including waiting time. any output appears within the execution are sent back to you via this app after the execution are done in the server.
25th Oct 2018, 1:11 PM
Taste
Taste - avatar
+ 2
it wont work in solo learn, the execution run on the server, and the only the output after execution done are sent back to us.
25th Oct 2018, 12:55 PM
Taste
Taste - avatar
0
Taste, the code should print one letter by second, but It prints the entire string once, i want to understand why this happen.
25th Oct 2018, 1:08 PM
Luiz Santos
Luiz Santos - avatar
0
I found a way to acomplish my goal with the flush keyword, i put a link bellow with some explanation. https://stackoverflow.com/questions/28736175/why-print-in-JUMP_LINK__&&__python__&&__JUMP_LINK-doesnt-pause-when-using-sleep-in-a-loop
25th Oct 2018, 4:42 PM
Luiz Santos
Luiz Santos - avatar
- 1
You should print c not n[c]
25th Oct 2018, 1:13 PM
Vlad Serbu
Vlad Serbu - avatar