+ 1
No output from code on SL
I have proglett that I am working on in an IDE on the desktop and copied it to SL Codes to share.. It is reasonably simple, written in Python, with just print() statements to output some info and works fine in the IDE and directly from the terminal, but on here no output unless I throw and exception. Any ideas anyone, the code is at https://code.sololearn.com/cN1Au4Z34Gdb
1 Resposta
+ 1
Your code takes too long to exit. That's the main problem.
Sololearn needs Python code to actually exit within 10 seconds or so. 5 seconds would be more reliable. Best would be that you write code that never sleeps and finishes in a fraction of a second.
Replace your 'sleep(5)' with 'break' and you'll see some output.