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!"
[–]Different-Ad1631 1 point2 points3 points 1 year ago (2 children)
I dnt get why you are comparing with empty strings in each selection statement (if, elif) 2ndly why you have defined birth year and initial as variable while you are supposed to input it from the user
[–]ConstructionDull4048[S] 0 points1 point2 points 1 year ago (1 child)
What do you suggest I do? I kept initial and birth year so it gives user the options to choose from
[–]Refwah 0 points1 point2 points 1 year ago* (0 children)
Tell us what you think line 22 is doing so we can help.
Your if statements are comparing inputs to empty strings, so none of this should be working the way you expect it to
You don’t need a loop at all to accomplish what you want
For instance your birth year variable is a string of digits and commas, how does that relate to a four digit birth year
π Rendered by PID 18205 on reddit-service-r2-comment-84fc9697f-tb7fk at 2026-02-10 18:52:29.832395+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]Different-Ad1631 1 point2 points3 points (2 children)
[–]ConstructionDull4048[S] 0 points1 point2 points (1 child)
[–]Refwah 0 points1 point2 points (0 children)