Why this code execute always "else statement 'Invalid username" when i enter valid username it also execute invalid username

  1. It'd be better if you copied your code, not screenshot, since we could the copy it to our editor and test it ourselves.
  2. You're doing to_lowercase on the input, but neither of the valid user names is in lowercase.
1 Like

yes i got it, appreciate your help thank u
i was thinking on this issue for two hours

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.