+ 2

Can you use multiple inputs?

can i use mutiple times : input()

6th Dec 2016, 3:23 PM
Milan Zanden
Milan Zanden - avatar
5 Respuestas
+ 1
You can use input as many times as you want. It's just like any other function.
6th Dec 2016, 3:41 PM
James Durand
James Durand - avatar
+ 1
when i use it like this: input("question 1") input("question 2") i only get one input....
6th Dec 2016, 3:42 PM
Milan Zanden
Milan Zanden - avatar
+ 1
Did you hit the enter or return key? The input function won't return until you do.
6th Dec 2016, 3:46 PM
James Durand
James Durand - avatar
+ 1
thanks!
6th Dec 2016, 3:56 PM
Milan Zanden
Milan Zanden - avatar
0
i think we have to sperate two inputs by breaking like into two line for taking two inputs otherwise on the basis of this input("question 1") input("question 2") output will be shown as 12 Try like this input("question 1") input("\n question 2")
6th Dec 2016, 3:53 PM
Vipul Walia
Vipul Walia - avatar