1

So say I have

x = [1,2,3,4,5,6]
y = [2,3,4]

Is there a way to check if y is in x exactly in the order that it's in?

so like an if statement that would be true if y is in x?

Yu Hao
  • 119,891
  • 44
  • 235
  • 294
Bob Smith
  • 45
  • 3

0 Answers0