I have a recursive function called eval() that in one case returns:
base case: ...
if some_case():
return eval() and eval()
That was my first attempt, which did not return the expected result. unlike what I believe to be that an equivalent code:
if base case():
...
if some_case():
add_first = eval()
add_second = eval()
return add_first and add_second
which seemed to to the trick.
Would like an explanation on the difference. any ideas?