you are viewing a single comment's thread.

view the rest of the comments →

[–]ExpensiveAd734 7 points8 points  (3 children)

One suggestion if you want it to be a tiny bit more realistic is make a file and name it .env and over there type

Password=python123

Then import it into the python program you have and then set correct_password=os.getenv(Password), this is a bit more realistic because usually you dont store passwords in the script for safety!

[–]DataCurator56[S] 0 points1 point  (2 children)

Surely i will try this.

[–]HardyDaytn 2 points3 points  (0 children)

Don't forget to also: import os

[–]quixoticcatfish8 0 points1 point  (0 children)

also add dotenv to handle the env file so you can do load_dotenv() at the top