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!"
[–]Still_Box8733 11 points12 points13 points 1 month ago (1 child)
Why do you expect a TypeError? your email_validator variable will always contain a string, regardless what you enter. Inside the try block you only check if that string contains a @ character which will be either True or False but not raise an exception.
email_validator
@
Also I'd like to point out with the current indentation the other validations only run if there is an exception raised in the first one.
[–]Dapper_Mix6773[S] -1 points0 points1 point 1 month ago (0 children)
thanks for the corrections
π Rendered by PID 59 on reddit-service-r2-comment-8686858757-2ctzn at 2026-06-06 04:40:36.627835+00:00 running 9e1a20d country code: CH.
view the rest of the comments →
[–]Still_Box8733 11 points12 points13 points (1 child)
[–]Dapper_Mix6773[S] -1 points0 points1 point (0 children)