how to checl if the input by the user is int or str python code example
Example: python check if input is a number
user_input = input("Enter something:")
if type(user_input) == int:
return user_input
else:
print("Not a number")
user_input = input("Enter something:")
if type(user_input) == int:
return user_input
else:
print("Not a number")