Answer to Question #221392 in Python for Hari nadh babu

Question #221392

Letter, Digit or Special Character


This Program name is Letter, Digit or Special Character. Write a Python program to Letter, Digit or Special Character, it has two test cases


The below link contains Letter, Digit or Special Character question, explanation and test cases


https://drive.google.com/file/d/1iGIZxhoPoL67KNkroEgQpaIo3Vh8w7dE/view?usp=sharing


We need exact output when the code was run

1
Expert's answer
2021-08-05T17:51:09-0400
def character_element(n):
    import string
    if n in string.ascii_letters:
        print('Letter')
    elif n in string.digits:
        print('Digit')
    else:
        print('Special Character')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS