0

Get two inputs to include in print

I want to get two input from user to display them in a sentence. I have tried with following code. Help me find my error. a = input() b = input() print(a + ", " + b)

11th Apr 2017, 6:18 AM
Myurathan Kajendran
Myurathan Kajendran - avatar
2 Respuestas
+ 8
Yes , In Code Playground you can input either by giving space or by enter. e.g: input1 input2 or input1 input2
11th Apr 2017, 7:15 AM
Mr.Robot
Mr.Robot - avatar
+ 5
Sololearn won't ask you twice to input strings, instead use the return key ↩ to go to the next line and put your second string there then it will work. There's nothing wrong with your code 😉
11th Apr 2017, 6:54 AM
Ghauth Christians
Ghauth Christians - avatar