Hello guys i need to write a programm which calculates the greatest common divisor of two numbers. The programm should throw an exception when 1 of the 2 input numbers are zero. But my code always throws this Exception now :( Hope you guys can help me :)
def ggt (a,b):
if (b) or (a)==0:
raise Exception(ValueError)
else:
return ggt(int(b), int(a%b))
print (ggt(25,14)