I have a K function that returns three values (a,b and c) and I am using it in multiple places in my programme. I also want to use this function inside an H function. However, when I use it inside H function, I want it to return only its first two return values (a and b), just like in the code below. Is there a way with which I can hide the c when I use K inside H? Or should I just redefine K function inside H function separately in such a way that it returns only a and b values?
def K(x):
...
return a,b,c
def H(y):
...
a,b=K(y)
...
return p
Thanks!