how to check input is interer python 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")