I\'m trying to find the most pythonic way to split a string like
\"some words in a string\"
into single words. string.split(\' \')
string.split(\' \')
The most Pythonic and correct ways is to just not specify any delimiter:
"some words in a string".split() # => ['some', 'words', 'in', 'a', 'string']
Also read: How can I split by 1 or more occurrences of a delimiter in Python?