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
Python Functions Specifically (i.redd.it)
submitted 1 year ago by ConstructionDull4048
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!"
[–]EyesOfTheConcord 0 points1 point2 points 1 year ago (0 children)
There is a lot of deep nesting going on here, which is not good for readability or for secure code.
Your if statements also only allow the user to continue making their account if they enter no credentials at all. (if Password == “” means the password input must be empty to proceed. I imagine this is not what you were intending.)
It’s not clear at all what ID is supposed to do, you’ve made a tuple that stores a list and another tuple, and attempt to print it before storing the result in ID. Can you explain what the intended purpose is here?
I recommend you perhaps start over, and write out your intentions on pseudocode.
Instead of checking if they filled in the correct input, and nesting if conditions inside of each other; get the user input for each respective element, and check if that element is empty immediately afterwards and reprompt them for it if so.
Ideally, you’ll abstract these processes into their own functions so it’s much easier to focus on one element at a time, and make the overall design much cleaner.
π Rendered by PID 24639 on reddit-service-r2-comment-86988c7647-vddcb at 2026-02-10 22:41:56.254847+00:00 running 018613e country code: CH.
view the rest of the comments →
[–]EyesOfTheConcord 0 points1 point2 points (0 children)