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
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
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
History,
2 days ago
Hindi,
2 days ago
Math,
2 days ago
Computer Science,
8 months ago
English,
8 months ago