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
14 odpowiedzi
+ 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
+ 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.
+ 1
Thanks,
+ 1
Oh,
+ 1
Why did it work on a dif IDE
+ 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
+ 1
Error is:
+ 1
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 Code is okay but taking input is problem.
+ 1
EOD error error while readingv a line line 4
+ 1
Ye
+ 1
Their offices are probs closed tho
+ 1
Coz corona
+ 1
Gurseerit Your loop should be of fix size like 5, 6, 7 then you can take multiple input with separte line.