G
Gilles Ganault
Hello
I'd like to go through a list of e-mail addresses, and extract those
that belong to well-known ISP's. For some reason I can't figure out,
Python shows the whole list instead of just e-mails that match:
======= script
test = "(e-mail address removed)"
isp = ["gmail.com", "yahoo.com"]
for item in isp:
if test.find(item):
print item
======= output
gmail.com
yahoo.com
=======
Any idea why I'm also getting "yahoo.com"?
Thank you.
I'd like to go through a list of e-mail addresses, and extract those
that belong to well-known ISP's. For some reason I can't figure out,
Python shows the whole list instead of just e-mails that match:
======= script
test = "(e-mail address removed)"
isp = ["gmail.com", "yahoo.com"]
for item in isp:
if test.find(item):
print item
======= output
gmail.com
yahoo.com
=======
Any idea why I'm also getting "yahoo.com"?
Thank you.