Multiple inputs for Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Multiple inputs for Python?

I can only input 1 line for Python... why is this?

13th Feb 2019, 8:06 PM
Ivan
5 Answers
+ 2
nope i figured it out you dont input: 1 2 you input: 1 2 haha awesome thanks fam :)
15th Feb 2019, 4:47 PM
Ivan
+ 5
In code playground, to input more lines you have to separate them with newlines.
13th Feb 2019, 9:44 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
how so? Valen.H. ~ i write que = (int(input(“ 1 number here”))) que2 = (int(input(“ 2nd number here”))) it will only allow 1 input notification, maybe it’s only on iOS sololearn? im not quite sure... on computer it works fine on repl.it so just wondering
14th Feb 2019, 12:59 AM
Ivan
+ 2
Diego it only outputs 1 input when i put seperate lines into the 1 input box, i dont get asked for a second input like you can do in Java
14th Feb 2019, 6:12 AM
Ivan
+ 1
Try this as input (separate lines): 1 2 You will only see one input notification at the beginning of a program on Sololearn.
14th Feb 2019, 4:25 AM
Diego
Diego - avatar