1
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, where the next error appears:
while (a % b != 0 ):
Typeerror: not all Arguments converted During string formatting
what I must change ?