0
Input list
Hi, sorry for my English, it's correct this command in python x=input(list())? I want to create a list. Thanks
2 odpowiedzi
+ 4
You can do things like:
x = [int(i) for i in input().split()]
print(x)
Input example (separated by a space):
1 2 3 4
Output:
[1, 2, 3, 4]
0
Thanks