C3_W1 Assignment error - "Sequence item 0: expected str instance, tensorflow.python.framework.ops.EagerTensor found"

Hi, getting the error mentioned in the subject line.

I get it when I try to test the function:

Test your function
remove_stopwords(“I am about to go to the store and get any snack”)

*Previously, I tried to search for stopwords sandwiched in the middle of spaces (" "), but realized that that wouldn’t detect the “I” at the beginning of the sentence (I is only followed by a space after it.)

So I tried to split the sentence based on whitespace but I’m not sure where I got it wrong… May I ask one of the authorized members who are allowed to see my code for help?

Please click my name and message your notebook as an attachment.

Hi Balaj,

I have sent you a message with the code so please check during your spare time.


str.join expects an iterable that yields a python string. Using str.split is sufficient.

Noted with thanks!
Thank you for taking time out of your busy schedule