1def tak(x, y, z): 2 if not(y<x): 3 return z 4 else: 5 return tak(tak(x-1, y, z), 6 tak(y-1, z, x), 7 tak(z-1, x, y)) 8tak(18, 9, 0) 9