Find string in another string using python
<p>Lets say that you have an email address xxx@yyy.com and you want to create something like this in python:</p>

<pre><code>email = 'mystuff@yyy.com'
try:
    if "@yyy.com":
    #do something

    if "@zzz.com":
    #do something else
except:
#do something
</code></pre>

<p>How would I do this?</p>
