0

How can i change str input to list?(python)

31st Jan 2017, 11:42 AM
Guido Parlatore
Guido Parlatore - avatar
2 odpowiedzi
+ 2
As Richard said... newlist=input().split() Or store the input first... newlist=input("Write a list") newline=newline.split() Or use it to write long Lists without the [" "," "," "] newlist="You can split directly as well".split()
31st Jan 2017, 12:26 PM
LordHill
LordHill - avatar
+ 1
user = input().split()
31st Jan 2017, 12:13 PM
richard