Member-only story
Project of the week — Log in system
Small login system that you can run in your console.
To become a data scientist I have to be proficient in Python. After doing research on ways to learn programming languages it was pretty unanimous that doing projects was the best way to ingrain what you’ve learned. I’ll write into this blog real time as I am designing/coding to outline my thought process.
I got the idea of a log in system from Tech with Tim on YouTube. This script will be fairly simple. It will ask the user if they have created an account. If they have not they will create a username/password and it will be saved into a text file on the computer. If they do have a username they will be asked to input it. There will be several checks to ensure that there can’t be duplicate usernames and whether they input the right username/password.
Design Process
I will take this step by step and first create a function that allows the user to create a username and password, saves this information to a text file. The function will check for duplicate usernames, and maybe I’ll ask for a password with uppercase letters and numbers. So far the design looks like:
answer = input('Do you have an account? y/n')if answer == 'n':
create_account()