How to split a string to list in Python

To split a String to List in Python, simply use the split() function.

Sample Python

splittedWords = text.split()

Please Share us:
Please rate this snippet

3 thoughts on “How to split a string to list in Python

Leave a Reply