So I am trying for my program to print the message "That is not an integer!" if the user inputs something that is not an integer basically, I thought this was how you would do that but apparently isn't, could anyone tell me what I am doing wrong please?
user_number = input() if type(user_number) != int: print("That's not an integer number.")
try/exceptblock to try to convert the string to an integer usingint().user_number.isdigit()will returnTrueorFalse