+ 1

Hello everyone... please how can we get multiple inputs on a single line in python ...

29th Jan 2019, 1:00 PM
Jay_Junior
Jay_Junior - avatar
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', '...']
29th Jan 2019, 1:15 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 5
What do you mean? Please give an example
29th Jan 2019, 1:15 PM
Anna
Anna - avatar
0
like what
29th Jan 2019, 2:24 PM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar
- 3
Really ...
29th Jan 2019, 1:17 PM
Jay_Junior
Jay_Junior - avatar