+ 1

How to get multiple inputs?

Hi... I need to get multiples different inputs from user, something like this: >>> a = input(“What is your name?”) >>> b = input(“Where are you from?”) >>> >>> print (a) >>> print (b) This is a very stupid example, I know, but I need to do this and I don’t know how. It really have to be different inputs, and not just two values for a single input.

8th Apr 2018, 1:36 PM
Eduardo Franco
Eduardo Franco - avatar
3 Answers
+ 1
The way you did it is fine that will give you 2 separate inputs from the user.
8th Apr 2018, 1:40 PM
Mooaholic
Mooaholic - avatar
+ 1
That is correct way to do it, Sololearn Playground requires the user to input all required inputs when he first runs the program, you just separate every input with a new line
8th Apr 2018, 1:55 PM
Markus Kaleton
Markus Kaleton - avatar
0
Aaahhh yes, I got... I thought that python didn’t support this, but now I understood, this is a Solo Learn limitation. Thank you very much!!
8th Apr 2018, 6:02 PM
Eduardo Franco
Eduardo Franco - avatar