python check if char is uppercase code example
Example 1: python method to check for uppercase character
a="DEMO"
print(a.isupper())
Example 2: python to uppercase
original = Hello, World!
#both of these work
upper = original.upper()
upper = upper(original)
Example 3: function in oythin test if letter is capital
string.isupper() # returns True or False, only returns true if all characters in string are Capiral