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

31st Mar 2019, 7:12 PM
Silvio Petix
Silvio Petix - avatar
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]
31st Mar 2019, 7:34 PM
Diego
Diego - avatar
0
Thanks
31st Mar 2019, 7:37 PM
Silvio Petix
Silvio Petix - avatar