Sep 3, 2018 · 1 min read
Hi Susan,
Thanks for your helpful post.
I think you should fix the function
def cleanText(text):
text = text.strip().replace("\n", " ").replace("\r", " ")
text = text.lower()to include return statement:
def cleanText(text):
text = text.strip().replace("\n", " ").replace("\r", " ")
text = text.lower()
# TODO: add the next line
return textFor me, the original code raises an exception and the fixed code works.