I have a list = [0, 0, 7]
and I when I compare it against anotherList = [0, 0, 7, 0]
using in
it gives me False
.
I would like to know how I can check if numbers in one list are in the same sequence as another list.
So, if I do anotherList2 = [7, 0, 0, 0]
:
list in anotherList2
returns False
But, list in anotherList
return True