August 2018
Intermediate to advanced
366 pages
10h 14m
English
Just rely on shlex.split instead of str.split:
>>> import shlex
>>>
>>> text = 'I was sleeping at the "Windsdale Hotel"'
>>> print(shlex.split(text))
['I', 'was', 'sleeping', 'at', 'the', 'Windsdale Hotel']