I’m a beginner level in Python 3 and as one of my first projects, I decided to create a sign-up screen and login screen.
They are both very simple.
Sign-up screen takes user’s input (username and password) and puts it into a .txt file.
Login screen then should take user’s input and compare it to the .txt file to see if credentials match. For some reason, this just doesn’t work!
The program always DENIES username and password. The problem is not with line numbering. I tried to print the credentials in a test program and they were printed out correctly.
I’m ready to drop this code and move on to better solutions for login screens (this is my first attempt) but first I would like to understand why this doesn’t work.