Repetitions are an oportunity to shorted the code. You have `a = int(input('enter the first number: '))` repeated four times, so it should be moved outside of the method.
you could add it to cosntructor