Computer Science, asked by priyanka6254, 2 months ago

wap to input a character and check the input taken in character , digit or whitespace. your program should print appropriate message to the user. ​

Answers

Answered by jai696
1

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

def char_type(c):

if c.isdigit():

return "digit"

if c.isspace():

return "whitespace"

return "character"

print(char_type((c := input("enter c: "))))

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions