I have an if
condition in my code which seems for example like this:
a = [1,2,3]
b = [4,5,6]
c = [7,8,9]
I want 'If'
to return true when (1 is in a) or (1 is in b) or (1 is in c) or (5 is in a) or (5 is in b) or (5 is in c)
I've tried:
if (1 or 5) in (a or b or c):
pass
But this obviously didn't work that way. Could you give me a hint? Thanks