Unexpected return of list of lists instead of list
<p>This app will download a webpage and find all email addresses in the text of the page and return a list of them.</p>

<p>This is my current code:</p>

<pre><code>def emails(content):
'return list of email addresses contained in string content'
    email = []
    content = urlopen(url).read().decode()
    pattern='[A-Za-z0-9_.]+\@[A-Za-z0-9_.]+\....'
    email.append(re.findall(pattern,content))
    print(email)
</code></pre>

<p>But for some reason I get:</p>

<pre><code>[['somePERSON@university.ca"']]
</code></pre>

<p>instead of :</p>

<pre><code>['somePERSON@university.ca']
</code></pre>
