+ 1

Moving code from one IDE (Pythonista 3) to another (Sololearn), and nothing outputs for two different codes.

I made both codes on Pythonista, and the both worked after testing. But when I tried moving them to Sololearn (in separate playgrounds) they both outputted “No Output”. They are both based off infinite loops, but only one is a function. I tried making them finite loops, but nothing changed. Here are the codes below. Fibonacci: https://code.sololearn.com/ciQGFPctX3y1/?ref=app Prime Numbers: https://code.sololearn.com/c2uzgc7bvRKj/?ref=app I really want to post these. Please help!

16th Aug 2022, 12:58 PM
The Coder
The Coder - avatar
4 Respostas
+ 2
On sololearn we cannot use time.sleep() or something alike. We cannot "pause" or delay code execution on sololearn Python playground. Remove time.sleep() and try to run the code bit then.
16th Aug 2022, 1:12 PM
Lisa
Lisa - avatar
0
Ah thank you, I will try that.
16th Aug 2022, 1:14 PM
The Coder
The Coder - avatar
0
It worked! Thank you so much. To be honest I did not expect that result. Thank you so much though!
16th Aug 2022, 1:16 PM
The Coder
The Coder - avatar
0
I wish it could be included though cause it makes the code look much cooler :(
16th Aug 2022, 1:17 PM
The Coder
The Coder - avatar