<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def values_for(self, k):
 """ Each value with name `k`. """

        return [getattr(frame, k) for frame in self.stack if hasattr(frame, k)]