<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pop(self):
 """ return the last stack element and delete it from the list """

        if not self.empty():
            val = self.stack[-1]
            del self.stack[-1]
            return val