how to check if all letters in a string are capitalized code example Example: python method to check for uppercase character a="DEMO" print(a.isupper())