<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def strip_tail(sequence, values):
 """Strip `values` from the end of `sequence`."""

    return list(reversed(list(strip_head(reversed(sequence), values))))