How to check a string for specific characters?

I'm supposed to write a function that "Given a string s, return True if any character in that string is lowercase (between 'a' and 'z'), and False otherwise."

My code doesn't account for cases like ASDdFHU and ABCDeF

?2016-02-15T14:23:56Z

import string
def any_lowercase(s):
for i in range(0,len(s)): #check each character using a for loop
if(ord(s[i]) >= 97 and ord(s[i]) <= 122): #if the character at s[i] is between 'a' and 'z' in ascii, it must be a lowercase letter so return true
return True
return False

wg0z2016-02-16T07:29:16Z

Standard C function islower() is your friend.

Chris2016-02-15T11:44:12Z

Here's one way: http://ideone.com/ZPKLf5

any() is a function, you can't use it like you tried.