Elements in one python list appears on another list


#1

I have two lists:

S=[1,3,5,7,9,11]
T=[2,3,6,7]

How can write a program to print YES if elements of T appears in S and in order as they appear in T


#2

so the only time YES should be printed is if the lists are identical?

Or are the other cases yes has also to printed, if so, please give some of those cases

otherwise you can just do:

S == T

#3

How would you do it manually?
Write that down in English, it'll have a straight-forward translation into code.

The problem isn't about code, it's about what actions are needed to produce a result. That's why you'd start by figuring out what those are.