Mercurial > louis > peeves
view arrays/tokenize/question.rst @ 0:20fea762903e
Import some exercises and solutions
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Sat, 29 Jun 2013 19:30:31 -0700 |
parents | |
children |
line wrap: on
line source
Tokenize ======== Write a function tokenize(string) → [word1, word2…]. Twists ------ - Same thing but with a filename in input (i.e: you have to load the file); - Handle punctuation (i.e: consider commas like a spaces).