0

I can't use 2 " input() " in a code (python)

If I trie something like: X=input() Y=input() It only asks me one time for input,and I am new to this and know that I made a mistake,so,anyone to help out ?

19th Sep 2022, 5:41 PM
Abderahmane Ibarissen
Abderahmane Ibarissen - avatar
2 Answers
+ 7
SoloLearn doesn't support inputs during runtime, so you have to specify all your inputs right away when you run the code. In the pop-up, type all your inputs separated by a new line.
19th Sep 2022, 6:07 PM
Daniel C
Daniel C - avatar
+ 4
You can use 2 or more input statements, just separate the given inputs with newlines. The playground doesn't really take input like programs really do. It only asks for input once. In real programs you would be asked for input separately for each input statement.
19th Sep 2022, 6:20 PM
Seb TheS
Seb TheS - avatar