Question #168874

create a program in python and the output is this:


example output:


User Registration

Enter Desired Username: carloPogi

Enter Desired Password: iloveyou

Re-type Password: iloveyou


Login Form

Enter Username: carloPogi

Enter Password: iloveyou


Access Completed


Expert's answer

print("User Registration")
desired_username = str(input("Enter desired username: "))
desired_password = str(input("Enter desired password: "))


print("\n\nLogin form")
username = str(input("Enter username: "))
password = str(input("Enter password: "))


if username == desired_username and password == desired_password:
    print("\nAccess completed")
else:
    print("\nAccess denied")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS