Answer:
user_string = input("Input a string : ")
output = user_string.isnumeric()
if output == True:
print("yes")
else:
print("no")
Explanation:
Answer:
text = input("enter a value: ")
if text.isdigit():
print("yes")
Explanation:
The program is written in python.
text = input("enter a value: ") This expression prompt the user to input a string value containing any form of character . The inputted character might be letters, digits etc.
if text.isdigit():
This check if the inputted value is a digit .
print("yes")
if the value is a digit the system will display yes.