Isupper, Islower & Digit using User Define Function - Python3
def char(ip):
if ip.isupper() :
print("Upper Case")
elif ip.islower() :
print('lower Case')
elif ip.isdigit() :
print('Number')
else :
print('Special Char')
a=input('Enter the Charater or Number: ')
char(a)
ScreenShots:
No comments:
Post a Comment