Question: Using python, Create a login system that uses files to check if a username and password match. We must also create a user if they
Using python, Create a login system that uses files to check if a username and password match.
We must also create a user if they have not yet been created. There should be a limit of attempts.
Store usernames in one file, and passwords in another
Create a login system that uses files to check if
a username and password match.
We must also create a user if they have not yet
been created. There should be a limit of attempts.
Store usernames in one file, and passwords in another
def loginSystem:
f openU:usernamestxtr
f openU:passwordstxtr
c fread
c fread
printWelcome to the login system"
printEnter your username and password when prompted"
printWhat is your Username?"
user input
print
printWhat is your password?"
password input
if cfinduser and cfindpassword:
printSuccessful Login"
else:
printLogin Unsuccessful"
Create a login system that uses files to check if
a username and password match.
We must also create a user if they have not yet
been created. There should be a limit of attempts.
Store usernames in one file, and passwords in another
def loginSystem:
f openU:usernamestxtr
f openU:passwordstxtr
c fread
c fread
printWelcome to the login system"
printEnter your username and password when prompted"
printWhat is your Username?"
user input
print
printWhat is your password?"
password input
if cfinduser and cfindpassword:
printSuccessful Login"
else:
printLogin Unsuccessful"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
