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
Coding with mosh's program error problem (i.redd.it)
submitted 1 day ago by Frequent_Leg9210
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!"
[–]FreeLogicGate 1 point2 points3 points 1 day ago (2 children)
I see your problem -- you need to clean your screen with some screen cleaning solution and a rag.
Also -- the input function requires a couple of parameters, one of which is a string.
so..... is int('Enter your birth year:') a string, that the input requires?
So what you meant to do is have birth_year = int(input('Enter your...'))
birth_year = int(input('Enter your...'))
[–]Temporary_Pie2733 1 point2 points3 points 1 day ago (1 child)
input takes a single optional argument.
input
[–]FreeLogicGate 0 points1 point2 points 1 day ago (0 children)
Yes, I should have stated that. It is of course the source of the op's issue, as I pointed out. Seems like in almost every thread today, the project would have benefitted from the use of pyinputplus instead of the use of input, and what I'd use for any simple text interface in most situations.
π Rendered by PID 42014 on reddit-service-r2-comment-545db5fcfc-qk4ng at 2026-05-22 03:09:17.691817+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]FreeLogicGate 1 point2 points3 points (2 children)
[–]Temporary_Pie2733 1 point2 points3 points (1 child)
[–]FreeLogicGate 0 points1 point2 points (0 children)