I try to make a function that at first will check if the input is not a string. But if the user inputs a float, it gets False. I need it to accept both Int and Float, bot not a string.
def squat():
value = input("What is your RM1?")
if value.isnumeric():
rm1 = float(value)
print("Your RM1 is: ", rm1)
print(type(value))
else:
print("Error")
squat()