Does solo learn code playground support multiple inputs in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Does solo learn code playground support multiple inputs in python?

I noticed that when i create or encounter a code that ask multiple inputs , an error is occured when the code is executed, but when inputs values are hard coded, errors are gone!!! Anyone have encountered the same issue ? Is that dedicated to mobile version ? The following simple code is giving error (EOF when reading a line) due to multiple inputs a = input() b = input() print('Welcome ',a,b)

23rd Jul 2023, 11:29 AM
mouhammad Zein Eddine
mouhammad Zein Eddine - avatar
7 Answers
+ 10
Yes, but you should enter all inputs values at start of the code each in other line ie: 2 5
23rd Jul 2023, 11:36 AM
JaScript
JaScript - avatar
+ 6
mouhammad Zein Eddine this editor/compiler unfortunately do not support dynamics input.
23rd Jul 2023, 11:51 AM
JaScript
JaScript - avatar
+ 2
JaScript you know , many questions that i have encountered that ask about an unknown issue in code, are related to this fact, when code being waiting multiple values and the developer does not notice this and insert a single value instead of inserting each value on a line
23rd Jul 2023, 12:11 PM
mouhammad Zein Eddine
mouhammad Zein Eddine - avatar
+ 1
Yes it does. You have to enter next one in next line
23rd Jul 2023, 11:37 AM
Manoj Kumar S
+ 1
mouhammad Zein Eddine yes, that does happen. When I tried the first time something similar had happened with me too 😅
23rd Jul 2023, 11:50 AM
Manoj Kumar S
0
JaScript Manoj Kumar S Yes i checked it now, but you know It is little confusing 😅 specially if the original input might contain multiple lines and must be considered as single input 😃
23rd Jul 2023, 11:47 AM
mouhammad Zein Eddine
mouhammad Zein Eddine - avatar
0
Yes.
24th Jul 2023, 8:48 PM
Hipponophobia Hippostrophy
Hipponophobia Hippostrophy - avatar