Say I have a string that can contain different characters:
e.g. word = "UPPER£CASe"
word = "UPPER£CASe"
How would I test the string to see if all the charac
You could use regular expressions:
all_uppercase = bool(re.match(r'[A-Z]+$', word))