In this program, we define a function check_string_or_number that takes an input value as a parameter. We use the isinstance() function to check the type of the input value.
If the input value is of type str, we print a message indicating that it is a string. If the input value is of type int or float, we print a message indicating that it is a number. Otherwise, if the type is not recognized, we print a generic message.
We then prompt the user to enter a value using the input() function, which returns a string. The user's input is passed to the check_string_or_number function to determine its type, and the program prints the appropriate message based on the result.