Light Mode
Dark Mode
(fox, fox) should yield False

The task demands to

determine whether you can swap two letters in the first string to get the second string

One of the tests reads `assert switch_strings('fox', 'fox') == True`.
Could someone please explain, which two letters I can switch in fox so I get fox in return?
In my opinion, this input should result in `False`.

In contrast, I agree with `assert switch_strings('boss', 'boss') == True`.
Here you can switch third (s) and fourth (s), and we still have `boss`.

Created: March 11, 2023, 1:34 p.m.
Updated: March 11, 2023, 2:45 p.m.
0
25
User avatar
mu_py