how to see if string contains substring lowercase or uppercase python
a_string = "hello world"
all_lowercase = a_string.islower()
print(all_lowercase)
---------------------------------------------------
a_string = "HELLO WORLD"
all_uppercase = a_string.isupper()
print(all_uppercase)
---------------------------------------------------
a_string = "Hello World"
mixed_case = not a_string.islower() and not a_string.isupper()