+ 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)
7 odpowiedzi
+ 10
Yes, but you should enter all inputs values at start of the code each in other line ie:
2
5
+ 6
mouhammad Zein Eddine this editor/compiler unfortunately do not support dynamics input.
+ 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
+ 1
Yes it does. You have to enter next one in next line
+ 1
mouhammad Zein Eddine yes, that does happen. When I tried the first time something similar had happened with me too 😅
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 😃
0
Yes.