Mutations--Help with for loops

Tell us what’s happening:

Hi there, I am trying to understand why a for loop was used in the basic solution for the ‘mutations’ challenge. Why should the code by running multiple times?

Link to the challenge:

Because you need to check every character in the string.

1 Like