I can't understand why the code does not pass the test, tell me
def isallupper(text: str) -> bool:
# your code here
if text != '':
b = text.isupper()
return b
if text == '':
b = '' in text
return b
if name == 'main':
print("Example:")
print(isallupper('ALL UPPER'))
# These "asserts" are used for self-checking and not for an auto-testing
assert is_all_upper('ALL UPPER') == True
assert is_all_upper('all lower') == False
assert is_all_upper('mixed UPPER and lower') == False
assert is_all_upper('') == True
print("Coding complete? Click 'Check' to earn cool rewards!")
Created at: Feb. 3, 2021, 10:32 a.m.; Updated at: Feb. 4, 2021, 11:22 p.m.