I am confused on the proper way to do this in python.... So if I want to iterate through a list using a for loop and check if each element of list 'A' is in either of 2 or more other lists but I don't seem to understand how to do this... here is some basic code of what I mean:
>>> a
[1, 2, 3, 4, 5]
>>> even
[2, 4]
>>> odd
[1, 3]
>>> for i in a:
... if i in even or odd:
... print(i)
...
1
2
3
4
5
Why is this code printing 5 since 5 is not in the even list nor the odd list?? Also what is the proper way to do this so that I can iterate through one list and check if each element is in ATLEAST one of some other amount of lists?