What is the syntax to see if a string is all lowercase?

<string name>.islower()
#examples
str = 'hello world'
str2 = "12345"
str3 = 'HeLLO WORLD'

print(str.islower())
print(str2.islower())
print(str3.islower())

#output
True
False
False
Advertisements