The function find_in_list(items, target) should return the index of the first element in items that is equal in value to target. It returns -1 if not found.
It works for most cases — but searching for True in a list containing 1, or False in a list containing 0, mysteriously returns -1 even though those values should match.
The comparison line looks perfectly reasonable. What is Python actually checking?