Elements in one python list appears on another list


I have two lists:


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


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


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.