Light Mode
Dark Mode
Solve All Upper I

Hello! Can anyone help me to determine a mistake in "Solve All Upper I":

def is_all_upper(text: str) -> bool:
    if text != (""):  
        a=text.isupper()
        return (a)
    else:
        return True

if __name__ == '__main__':
    print("Example:")
    print(is_all_upper(''))

It looks like all answers are correct, but when i try to check it:

Your result:False Right result:True Fail:isallupper(" ")

Created: Dec. 7, 2020, 10:28 a.m.
Updated: Dec. 7, 2020, 2:02 p.m.
0
19
User avatar
Evgeniy88