Consider a function that returns two numbers:
def func():
# ....
return a,b
What is the simplest way to apply the compare operator == to the result of the function?
I've tried with lambda but I'm looking for something simple:-
q = lambda x, y: x == y
[q(*func()) for i in range(16)]