(self)
| 70 | return self.stack.data |
| 71 | |
| 72 | def __str__(self): |
| 73 | stack_copy = deepcopy(self) |
| 74 | tempHolder = [] |
| 75 | while stack_copy.size > 0: |
| 76 | tempHolder.append(stack_copy.pop()) |
| 77 | return ', '.join(map(str, tempHolder[::-1])) |
| 78 | |
| 79 | |
| 80 | if __name__ == "__main__": |