#uppercase,lowercaseand and special characters
ch=input('enter a character:')
a=ord(ch)#ordinall value
print('ascii value',a)
if a>=97 and a<123:
print('lowercase',a)
elif a>=65 and a<91:
print('uppercase',a)
elif a>=48 and a<58:
print('digit',a)
else:
print('special charecter',a)
#output:
#case I
enter a character:4
ascii value 52
digit 52
#case II
enter a character:a
ascii value 97
lowercase 97
#caseIII
enter a character:A
ascii value 65
uppercase 65
#caseIV
enter a character:+
ascii value 43
special charecter 43