Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
not islower() solution in Clear category for All Upper I by DimusLite
def is_all_upper(text: str) -> bool:
result = all(not ch.islower() for ch in text)
print(result)
return result
if __name__ == '__main__':
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
assert is_all_upper('123') == True
print("Coding complete? Click 'Check' to earn cool rewards!")
Oct. 20, 2020
Comments: