Answers for "check if a list contains another list in the same order"

3

python check list contains another list

>>> items = set([-1, 0, 1, 2])
>>> set([1, 2]).issubset(items)
True
>>> set([1, 3]).issubset(items)
False
Posted by: Guest on April-16-2021

Code answers related to "check if a list contains another list in the same order"

Python Answers by Framework

Browse Popular Code Answers by Language