+ 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.
3 Answers
+ 1
The way you did it is fine that will give you 2 separate inputs from the user.
+ 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
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!!