convert string to list python

# To split the string at every character use the list() function
word = 'abc'
L = list(word)
L
# Output:
# ['a', 'b', 'c']

# To split the string at a specific character use the split() function
word = 'a,b,c'
L = word.split(',')
L
# Output:
# ['a', 'b', 'c']

Here is what the above code is Doing:
1. We create a string and assign it to the variable word.
2. We use the list() function to convert the string into a list.
3. We create a string and assign it to the variable word.
4. We use the split() function to split the string at the comma character.
5. We assign the result to the variable L.
6. We print the contents of L to the console.