For each function, describe what it actually does when called with a string argument. If it does not correctly check for lowercase letters, give an example argument that produces incorrect results, and describe why the result is incorrect.
# 3
def any_lowercase3(s):
for c in s:
flag = c.islower()
return flag
def any_lowercase3(s):
for c in s: # Draws output at the last character
flag = c.islower()
return flag
# Returns true only in the last character is lower.. The function takes the given string, checks if it is in lowercase and passes the results (true or false) to the flag variable which the function returns
Comments