+ 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
Radi
Radi - avatar
7 odpowiedzi
+ 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
Radi
Radi - 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
Radi
Radi - avatar
0
Yes.
24th Jul 2023, 8:48 PM
Hipponophobia Hippostrophy
Hipponophobia Hippostrophy - avatar