+ 1
Single line, multiple inputs, please help
I want my code to take all of my inputs like this in a single line, 63 19 38, not like, 63 19 38 If there is anyway to do this, please help
3 Réponses
+ 4
Yes, just take the input and split it. You can then map each value to an int.
a, b, c = map(int, input().split())
+ 3
a = input().split(' ')
print(a)
+ 2
Thanks!