For input, when i try it myself and press enter. What does it mean by split? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

For input, when i try it myself and press enter. What does it mean by split?

14th Mar 2017, 12:28 AM
Ren
6 Answers
+ 7
What do you mean by split?
14th Mar 2017, 12:29 AM
J.G.
J.G. - avatar
+ 6
Ah. Well, how many inputs does your program take (posting code is always helpful)? If you have multiple, you *generally* split them into separate lines.
14th Mar 2017, 12:36 AM
J.G.
J.G. - avatar
+ 2
It means if your code needs multiple inputs, you need to input the information on a new line of the input box. Say your code is: var1 = input() var2 = input() To fill both vars, on the input box, you'd need to enter: 1 2 var1 would now contain '1', and var2 would contain '2'. If you were to enter 1 2 on the same line: 1 2 var2 would not be filled, and var1 would now contain '1 2'.
14th Mar 2017, 1:22 AM
Martian1oh1
Martian1oh1 - avatar
+ 1
says my program needs more inputs and wants me to split inputs into multiple lines.
14th Mar 2017, 12:32 AM
Ren
+ 1
i have figured it out. thank you for your assistance.
14th Mar 2017, 1:10 AM
Ren
+ 1
that makes sense. so for 2 vars, they would have to be in different lines.
14th Mar 2017, 1:24 AM
Ren