0
How do i do multiple inputs ?
I wanted to do a questionnaire for an application for example. I wanted to run this a = input ("enter your age: ") b = input ("enter your name: ") print(a) print(b)
1 Answer
+ 2
https://code.sololearn.com/c20XhkdYcZLY/?ref=app
you can use split command for that.
I attached code.
The input is to be given like: abcd efgh
then it prints
abcd
efgh
you can change the input type to int or float for numbers.