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.