class Stack:
def __init__(self):
self.arr = []
def pop(self):
data = self.arr.pop()
return data
def push(self, data):
self.arr.append(data)
def peek(self):
return self.arr[len(self.arr)-1]
def isEmpty(self):
return len(self.arr) == 0
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)