link = 'http://dedegood.com'
wrongdomain = ['google','facebook','twitter']
if any(link.find(i) for i in wrongdomain):
    print 'pass this url'
else:
    print 'good'
I want to check if link contains the words in wrongdomain
Why this always print 'pass this url'?
link has no google or facebook or twitter in it
I try seperate like  link.find('google')
it will return -1 .so what's the problem?
Please help me to check my logic.Thank you
