Lets say that you have an email address [email protected] and you want to create something like this in python:
email = '[email protected]'
try:
if "@yyy.com":
#do something
if "@zzz.com":
#do something else
except:
#do something
How would I do this?