<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):
 """removes the current character then moves to the next one, returning the current character"""

        char = self.code[self.index]
        self.index += 1
        return char