I'm doing python bats and the question 'has23' says the following:
Given an int array length 2, return True if it contains a 2 or a 3.
I have written this code so far expecting it to work as intended with the else statement but I cannot trigger the False if 2 or 3 is not found within the array.
def has23(nums):
if 2 or 3 in nums:
return True
else:
return False