def reduce(self,a,b):
self.dividend =a
self.divisor = b
if(a != 0 and b != 0 ):
if(a > b):
self.dividend = a
self.divisor = b
else:
self.dividendo = a
self.divisor = b
while(a % b != 0 ):
r = a % b
a = b
b = r
return b
I have this part of the program, which then appears the following error:
while (a% b! = 0):
TypeError: not all arguments converted during string formatting
What should I change?