C2_W1_Assignment_Exercise 9 - edit_two_letters

Hi @Del_Ali

Always create a new topic even if the error is similar to this post creator as issue behind your error output can differ from the person who has posted their issue here. You can tag me or any mentor in the post.

Regards
DP

I have the same error. My logic is:

  1. Run edit_one_letter, then store result in a temp1 set.
  2. Loop thru each word in temp1 set and run edit_one_letter for each word, then store result in temp2 set. Like this:
    for temp1_word in tmp1_edit_one_set:
    tmp2_edit_one_set = edit_one_letter(temp1_word, allow_switches)
  3. Take a union for temp1 set and temp2 set.

But the output is still wrong. See output below: