Single line, multiple inputs, please help | Sololearn: Learn to code for FREE!

+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

4/16/2021 9:23:09 PM

Random Nameless Coder

3 Answers

New Answer

+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