So, basically, as the title states "I'm trying to test if the input a is an integer and if not loop back to the top of the loop" when I do it the program only prints(a is not a number start over) even when a is a number and b is not or if a and b are numbers.
def multiply():
    while True:
        a = input("enter something: ", )
        b = input("enter something: ", )
        if(a != int(a)):
            print("a was not a number start over")
            multiply()
        elif(b != int(b)):
            print("b was not a number start over")
            multiply()
        else:
            sum = a * b
            print(sum)
            break
multiply()
 
    