deque.py icon indicating copy to clipboard operation
deque.py copied to clipboard

Split words using any whitespaces

Open Nicolas-Reyland opened this issue 3 years ago • 0 comments

Until now, words had to be separated by spaces only. Now, tabs (or any whitespaces work too). In addition, the code is a little bit cleaner because when using str.split() without any arguments, any empty strings are removed, thus rendering the len(word) > 0 condition unecessary.

Nicolas-Reyland avatar Jun 22 '22 09:06 Nicolas-Reyland