I don’t understand the loop in the review

I don’t understand the loop in the review. Thank you

Please post a link to the exercise. Thanks.

This is the link, i do not understand the second part. Thank you

The question asks for a function that would:

… take the input user name and shift all of the letters by one to the right … For example, if the username is AbeSimp , then the temporary password generated should be pAbeSim .

I’m not clear. Are you saying that you do not know how to do that, or that you do not understand the offered solution?

I would suggest that you take a look at the solution, and run it with the following call:


… you’ll see the output, fabcde

Now. as the first expression inside of the for loop, just above the password += line, type

print(i, i-1, user_name[i-1]) 

… and run the program.

Inspect the print() expression that you just put in, and then the output. I think it will become more clear how the function works.