+ 1

how do i obtain multiple user inputs in python

17th Feb 2017, 2:06 PM
Elijah Arhinful
Elijah Arhinful - avatar
3 Respuestas
+ 2
inputs = [] while len(inputs) == 0 or inputs[-1]: inputs.append(input('? ')) inputs = inputs[0:-1] print(inputs) # stop when user give an empty entry ^^
17th Feb 2017, 7:05 PM
visph
visph - avatar
+ 1
Just not in the code Playground. You need another Python shell
17th Feb 2017, 3:56 PM
Amaras A
Amaras A - avatar
0
a = input() b = input() c = input() ... You got the idea
17th Feb 2017, 2:18 PM
DotJason