All Upper I

All Upper I

Check if a given string has all symbols in upper case. If the string is empty or doesn't have any letter in it - function should return True.

example

Input: A string (str).

Output: A logic value (bool).

Examples:

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

Precondition: a-z, A-Z, 1-9 and spaces

40