python check for numaric input code example
Example: python check if input is a number
user_input = input("Enter something:")
if type(user_input) == int:
print("Is a number")
else:
print("Not a number")
user_input = input("Enter something:")
if type(user_input) == int:
print("Is a number")
else:
print("Not a number")