39. Python Program to check given Input is Digit or Uppercase or Lowercase or Special Character using Switch Case.
How does this program work?
- In this program you are going to learn about how to check given Input is Digit or UpperCase or LowerCase or Special Character using Python.
- This Problem is solved by using Switch Case then we can easily get the Output.
Here is the code
def Switch():
ch = input("Enter a character: ")
if ch >= '0' and ch <= '9':
print("Digit")
elif ch.isupper ():
print("Uppercase character")
elif ch.islower ():
print("Lowercase character")
else:
print("Special character")
Switch()
![SkillPundit: Python Program To check given Input is Digit or Uppercase or Lowercase or Special Character using Switch Case To check given Input is Digit or UpperCase or LowerCase or Special Character using Switch Case SkillPundit](img/SkillPundit-python-check-digit-lowercase-uppercase-special-using-switch.jpg)
![](img/add1.png)