What python 3 version does sololearn use anyway for codeplayground? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What python 3 version does sololearn use anyway for codeplayground?

I was making a program and It did not work but it worked in a different IDE? https://code.sololearn.com/cONo4UVAfIV5/?ref=app

16th May 2020, 2:19 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
13 Answers
+ 9
This the version info: Python version: ['3.7.6 (default, Feb 2 2020, 09:11:24) ', '[GCC 8.3.0]'] dist: ('debian', '10.2', '') linux_distribution: ('debian', '10.2', '') system: Linux machine: x86_64 platform: Linux-4.15.0-1060-azure-x86_64-with-debian-10.2 But I suppose you have an other problem concerning playground. You have input() in a while loop. This can not be handeled by playground, so you have to enter all inputs in advance. Find more info here: https://code.sololearn.com/c8pQgA9MTOj5/?ref=app
16th May 2020, 2:26 PM
Lothar
Lothar - avatar
+ 4
Gurseerit I think you are getting problem to take input. You cannot take multiple input inside loop on Sololearn. As I see your loop is not of fix Size. You can take only in case of fix Size.
16th May 2020, 2:27 PM
A͢J
A͢J - avatar
+ 1
Thanks,
16th May 2020, 2:27 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
+ 1
Oh,
16th May 2020, 2:28 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
+ 1
Why did it work on a dif IDE
16th May 2020, 2:28 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
+ 1
import time import math while True : main = input("Enter Command...") if "call" in main : i = main.replace("call","") print(i) if "math()" in main : time.sleep(2) num1 = int(input()) num2 = int(input()) print(num1 + num2) This is the code
16th May 2020, 2:28 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
+ 1
Error is:
16th May 2020, 2:29 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
+ 1
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 Code is okay but taking input is problem.
16th May 2020, 2:29 PM
A͢J
A͢J - avatar
+ 1
EOD error error while readingv a line line 4
16th May 2020, 2:30 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
+ 1
Ye
16th May 2020, 2:30 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
+ 1
Their offices are probs closed tho
16th May 2020, 2:31 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
+ 1
Coz corona
16th May 2020, 2:31 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
+ 1
Gurseerit Your loop should be of fix size like 5, 6, 7 then you can take multiple input with separte line.
16th May 2020, 2:31 PM
A͢J
A͢J - avatar