Answers for "python input with space"

1

python input with space

In []:
list(map(int, input().split()))

Input:
1 2 3 4 5

Out[]:
[1, 2, 3, 4, 5]
Posted by: Guest on April-23-2022

Code answers related to "python input with space"

Python Answers by Framework

Browse Popular Code Answers by Language