+ 1

How can a user input several values at once? (Python)

7th Nov 2018, 7:38 PM
Metr Drag
Metr Drag - avatar
3 Respostas
+ 4
You could use a loop to get the values then save it to a list
7th Nov 2018, 7:49 PM
Lambda_Driver
Lambda_Driver - avatar
+ 1
inputs=[] inputscount= 6 for i in range(inputscount): l.append(input())
7th Nov 2018, 8:18 PM
KrOW
KrOW - avatar
0
A simple decision, but won't it look a bit strange? I mean won't it be like "Enter value: 50 Enter value: 50,1 Enter value: 50,2 Enter value: 50,3" And so on. Or I didn't get it right?
7th Nov 2018, 8:13 PM
Metr Drag
Metr Drag - avatar