Computer Science, asked by shraddha8137301, 4 days ago

write a program to input a character and check whether it is alphabet or digit if it is alphabet then change its case and print it if it is a digit then just print a relevant message and stop the program


PLEASE HELP ME WITH THIS QUESTION AND DONT SCAM I WILL MARK BRAINLIST​

Answers

Answered by Anonymous
2

Answer:

The Syntax for input and output for these are:

Integer: Input: scanf("%d", &intVariable); Output: printf("%d", intVariable);

Float: Input: scanf("%f", &floatVariable); Output: printf("%f", floatVariable);

Character: Input: scanf("%c", &charVariable); Output: printf("%c", charVariable);

Answered by edwinshajumalakaranc
1

Answer:

x=input("enter your string: ")

if x.isalpha():

   print("the string is alphabetical== "+x.upper())

elif x.isnumeric():

   print("the string is numerical== "+x)

else:  

   print("string is neither numeric nor alphbetic")

Similar questions