python allow user input string and int 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")