Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
native_all_upper solution in Clear category for All Upper I by Jon_Red
def is_all_upper(text:str)->bool:return text==text.upper()
if __name__ =='__main__':
# self-checks
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
July 13, 2020
Comments: