Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs

Python - User login and sign-up system


How to make a user sign-up and login system in Python 3?

2 years ago
You are viewing a single comment. View All

password = "bob"
pass_count = 0
while pass_count < 5:
pass_attempt = input("Password: ")
if pass_attempt = password:
print("Password correct!")
pass_count = pass_count + 1

I'm thinking something like that should work. Sign up should work the same, just give them an option to create or login. And then ask them for a username and password. Add that to the list of usernames. And when a user puts in their username set the value of password to their corresponding password. I'm not sure how to save items although.

2 years ago