It is a method in python that checks if the given string has all the characters in lower case. It returns Trueif the condition satisfies else returns False. It checks for the alphabets and all the other characters are overlooked.
s = “codewindow123“ x = s.islower() print(x)
Here the string contains the alphabets ”codewindow” which is in lower case. The digit is overlooked. Hence it returned True.
s = “codeWindow123“ x = s.islower() print(x)
Here the string has an upper case character i.e. “W” in the middle. Hence it returned False.