This code doesn't run on sololearn code playground, but runs on my system. Is there a reason why this is happening? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

This code doesn't run on sololearn code playground, but runs on my system. Is there a reason why this is happening?

https://code.sololearn.com/ccygZUZ60j8b/?ref=app

10th Nov 2023, 1:49 PM
Akinlolu
Akinlolu - avatar
7 Answers
+ 8
Akinlolu , One more closing parenthesis is needed as you used two opening parenthesis... please check your code
10th Nov 2023, 2:30 PM
Riya
Riya - avatar
+ 9
Akinlolu , Here check it, I just added one more parenthesis to your code... https://code.sololearn.com/c3tzpdQKOsvq/?ref=app
10th Nov 2023, 2:32 PM
Riya
Riya - avatar
+ 8
Akinlolu , At line 2 check the code ...you missed a ending parenthesis.... So it is showing error... Except turtle... Other modules works in SL compiler...
10th Nov 2023, 2:22 PM
Riya
Riya - avatar
+ 7
your code is a Python code so why you put c++ and html in your question tag!?? see your line 2 and you will be able to see your mistake
10th Nov 2023, 2:04 PM
Alhaaz
Alhaaz - avatar
+ 7
Akinlolu but in my device after closing parenthesis on line 2 , it works if we itput 501 , output - 22.38
10th Nov 2023, 2:32 PM
Alhaaz
Alhaaz - avatar
+ 5
Oh. I have seen my mistake. Thank you very much.
10th Nov 2023, 2:33 PM
Akinlolu
Akinlolu - avatar
0
Riya , the closing parenthesis is on the other line. Line 2 simply couldn't contain everything. It still isn't running tho.
10th Nov 2023, 2:29 PM
Akinlolu
Akinlolu - avatar