C3W1: removing stopwords query

Am able to recreate the expected output in the “remove_stopwords” function but during grading am only got 15/20.

please help me what am missing with the code.

[code removed - moderator]

You should update and return join_sentence and leave sentence unchanged after lowercasing it.

The default behavior of str.split() involves removing all whitespaces. You might want to try that out:

>>> s = ' hello    there   '
>>> s.split(' ')
['', 'hello', '', '', '', 'there', '', '', '']
>>> s.split()
['hello', 'there']
>>>