Problem
How would I return the reverse result? Say if I wanted to change my own written code below that gives me a mixture of capital letters and lower case letters but exclude the "just capital letters" from the string and the "just lower case letters." I am struggling to understand changing Strings to Bools?
If I can do this backwards and forwards it would help me understand this better.
The following code only returns to me uppers and lowers.
def upper_lower (s: str) -> bool:
if not s:
return False
elif s.isupper() or s.islower():
return True
else:
return False
How would I return a mixed result and not just one or the other?