how to check if it is a number in 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")