example-
a,b,c,d,........x,y,z they are the lowercase alphabet
and
A,B,C,D,...........X,Y,Z they are the uppercase alphabet
Program -
a=input("Enter charactern")
if a.isalpha():
if 65<=ord(a)<=90:
print("It is a Uppercase")
else:
print("It is a lowercase")
else:
print("It is not alphabet")
#second way
if a.isalpha():
if a.isupper():
print("It is a Uppercase")
else:
print("It is a lowercase")
else:
print("It is not alphabet")
Enter character
h
It is a lowercase
It is a lowercase
Enter character
K
It is a Uppercase
It is a Uppercase
Enter character
1
It is not alphabet
It is not alphabet