I'm trying to have a user input an integer, while trying to catch errors if they put in floaters or strings. Any help would be awesome guys!!
try:
user_input = int(input())
except ValueError:
print("Please enter a whole number with no decimal points")
except NameError:
print("user_input not defined")