Member-only story

Project of the week — Log in system

Kristian Roopnarine
5 min readJul 28, 2019

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()

--

--

Kristian Roopnarine
Kristian Roopnarine

Written by Kristian Roopnarine

Full Stack Engineer sharing tips and tricks for anyone learning to program. Connect with me on LinkedIn : https://www.linkedin.com/in/kristianroopnarine/

No responses yet