Saturday, March 2, 2019

Find Upper Case, Lower Case, Digit & Special Character by manually - Python3

ip=input('Enter to check Upper or lower case char, Number or Sp Char: ')
if ip >= 'A' and ip <= 'Z' :
    print("Upper Case")
elif ip>='a' and ip<='z' :
    print('lower Case')
elif ip>='0' and ip<='9' :
    print('Number')
else :
    print('Special Char')

ScreenShot:

No comments:

Post a Comment