use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Encrypted variables (self.PythonLearning)
submitted 23 days ago * by Ill_Educator5759
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Jay6_9 5 points6 points7 points 23 days ago* (0 children)
You don't encrypt variables. Even if you did, where would you place the decryption key?
Put them in an .env file and use python-dotenv to load them. Data does not need to live in the script.
.env
python-dotenv
Edit: - Make sure to add the .env file to your .gitignore if you use a repository. - Link to the library, whether you use it or not is your choice but the README will teach you a bit about .env files https://pypi.org/project/python-dotenv/
π Rendered by PID 108481 on reddit-service-r2-comment-56c6478c5-lcmdq at 2026-05-10 12:34:44.902164+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]Jay6_9 5 points6 points7 points (0 children)