I was given a Python test and one of the questions was: what should be passed to the following function, so that it will return True
?
def fun(x):
if x + 1 is 1 + x:
return False
if x + 2 is not 2 + x:
return False
return True
In my opinion this doesn't make much sense but I just would like to know the right answer (if such answer exists).