I am getting the following error, 18 test passed , 2 failed. Can anyone please help me.
Hey @Rvi,
Did you pass in the allow_switches
argument to the calls of edit_one_letter
? Remember that you don’t have to pass it’s value, but the variable itself, since in some cases, the argument might have a value of False
as well. Let us know if this resolves your query.
Cheers,
Elemento
Dear @Elemento , I tried your suggestions nut,I am still getting the same error.
Hi @Rvi,
make sure the variable allow_switches is used in function edit_one_letter(). If you don’t implement the usage of this variable, the tests will be okay, but then you will get the problem later in function edit_two_letters().
Hey @Benjamin_Wolff,
Welcome, and we are glad that you could become a part of our community Thanks a lot for your contribution.
Hey @Rvi,
Can you please check your DM once?
Cheers,
Elemento
Dear Vishesh,
Thanks for helping me out. I am attaching my notebook.
Regards,
Ravi
{Moderator’s Edit: Solution Code Removed}
It seems I have shared my notebook to general audience, If it has happened, can you please delete that.
Hey @Rvi,
In your implementation of edit_one_letter
, you haven’t accounted for the case when allow_switches = False
. And since edit_two_letters
call edit_one_letter
, some of the outputs for your former are incorrect. I hope this resolves your issue.
Cheers,
Elemento
Thanks a lot! I have missed the very same detail. I just had to make sure I use the allow_switches
variable when I called the edit_one_letter()
function.