Exercise 8 - count_n_grams

Hi,

I have a problem with my ex 8 in the assignment.
The error is as below:

However, after I checked it manually, the test case suppose to be correct.

Any tips on this? Thank you before hand.

Best Regards,
Yehezkiel Efraim Darmadi

1 Like

Hi @Yehezkiel_Darmadi

Aren’t you by chance using sentences variable inside the function instead of the local parameterdata?

Cheers