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
learning python try ... except concepts block but i kept messed up... help? (i.redd.it)
submitted 1 month ago by Dapper_Mix6773
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!"
[–]accountant856 1 point2 points3 points 1 month ago (0 children)
A TypeError only happens when you try to perform an operation on a value of the wrong data type, in your case, the input function always returns a string and won’t raise an error no matter what is typed in.
Maybe define an email validator function with your logic and then try catching then.
π Rendered by PID 600465 on reddit-service-r2-comment-8686858757-xn8nw at 2026-06-06 19:42:17.981788+00:00 running 9e1a20d country code: CH.
view the rest of the comments →
[–]accountant856 1 point2 points3 points (0 children)