To split a string into an array of words in Python, you can use the split() method.
Here's an example:
main.py176 chars5 lines
By default, the split() method splits the string by whitespace. You can also specify a delimiter character as an argument to split(), like this:
main.py175 chars5 lines
gistlibby LogSnag