Is this also a move to the right?

Is this also a move to the right?

def password_generator(username):
  # password = ""
  password = username[-1] + username[:-1]
  # for i in range(len(username)):
  #   password += username[(i-1)]
  return password
1 Like

Well, in terms of of how we view language, the letters have moved to the right. But in actuality you simply took the last letter and put in front. So while you got the same solution the execution is not what was requested.
Oh man, I sound like my 8th grade mathteacher :upside_down_face:.