Autocomplete - Question 9

I am stuck in question 9. All my previous answers for edit_one_letter are correct. I really dont understand why this solution doesnt cover all test cases. I dont get why there is extra words generated?
Error:


Code:

Hi @Khadija_Rekik

You are not using allow_switches argument at all in your implementation.

It’s against the rules to show your solution code so please remove it.

Cheers