'''The following functions are all intended to check whether a string contains any
lowercase letters, but at least some of them are wrong. For each function, describe what the function
actually does (assuming that the parameter is a string).'''

def any_lowercase1(s):
    print('hi')
    for c in s:
        if c.islower():
            return True
        else:
            return False


def any_lowercase2(s):
    for c in s:
        if 'c'.islower():
            return 'True'
        else:
            return 'False'


def any_lowercase3(s):
    for c in s:
        flag = c.islower()
        return flag


def any_lowercase4(s):
    flag = False
    for c in s:
        flag = flag or c.islower()
        return flag


def any_lowercase5(s):
    for c in s:
        if not c.islower():
            return False
        return True


any_lowercase1('xyz')
any_lowercase2('kl')
any_lowercase3('UUU')
any_lowercase4('CFFGG')
any_lowercase5('Dtftf')
