class Solution(object):
def canMeasureWater(self, x, y, z):
"""
:type x: int
:type y: int
:type z: int
:rtype: bool
"""
a,b=x,y
while y:
r=x%y
x=y
y=r
return bool(not z or (x and z<=a+b and not z%x))
Python solution gcd

@hliu94 said in Python solution gcd:
a,b=x,y
while y:
r=x%y
x=y
y=r
return bool(not z or (x and z<=a+b and not z%x))what does
gcd
mean?