python check if a character is uppercase code example
Example 1: python method to check for uppercase character
a="DEMO"
print(a.isupper())
Example 2: python check if character is letter
>>> 'A'.isalpha()
True
>>> '1'.isalpha()
False
a="DEMO"
print(a.isupper())
>>> 'A'.isalpha()
True
>>> '1'.isalpha()
False