First. Returnes true only if the first letter in a string is lower.
In: any_lowercase1('Hello')
Out: False
Despite the string has lower symbols in it, function returnes False.
Second. Always returnes true.
In: any_lowercase2('HELLO')
Out: True
Despite the string has no lower letters al all, function returnes True.
Third. Returnes true only in the last character is lower.
In: any_lowercase3('hELLO')
Out: False
Despite the string has lower character in it, function returnes False.
Fourth. Correctly checks for lowercase letters in any position.
Fifth. Returnes true only if all symbols in the string are lower.
In: any_lowercase5('hELLO')
Out: False
The string contains lower letter, but function still returnes False, becourse it also contains upper ones.
Comments
This answer really helped me and left me awed
Leave a comment