str = input("Enter any value: ") if str.isdigit(): print("User input is an Integer ") else: print("User input is string ")