+ 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

16th Apr 2021, 9:23 PM
Random Nameless Coder
Random Nameless Coder - avatar
3 Respuestas
+ 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())
16th Apr 2021, 9:42 PM
ChaoticDawg
ChaoticDawg - avatar
+ 3
a = input().split(' ') print(a)
16th Apr 2021, 9:46 PM
JaScript
JaScript - avatar
+ 2
Thanks!
16th Apr 2021, 9:43 PM
Random Nameless Coder
Random Nameless Coder - avatar