+ 1
Hello everyone... please how can we get multiple inputs on a single line in python ...
4 odpowiedzi
+ 9
use 'str.split'
>>> '1 2 3'.split()
['1', '2', '3']
>>> '1,2,3'.split(',')
['1', '2', '3']
>>> '1 2 3 4'.split(maxsplit=2)
['1', '2', '3 4']
>>> input().split()
i1 i2 i3 i4 ...
['i1', 'i2', 'i3', 'i4', '...']
+ 5
What do you mean? Please give an example
0
like what
- 3
Really ...