@@ -0,0 +1,588 @@
+'''%0AImplementation of Stack data structure%0A%0A'''%0A%0A%0Aclass Stack:%0A%0A    def __init__(self):%0A%09'''%0A%09Initialize stack%0A%0A%09'''%0A%09self.items = %5B%5D%0A%0A%0A    def is_empty(self):%0A%09'''%0A%09Return True if stack if empty else False%0A%09%0A%09'''%0A%09return self.item == %5B%5D%0A%0A%0A    def push(self, item):%0A%09'''%0A%09Push item to stack%0A%0A%09'''%0A%09self.items.append(item)%0A%0A%0A    def pop(self):%0A%09'''%0A%09Pop item from stack%0A%0A%09'''%0A%09return self.items.pop()%0A%0A%0A    def peek(self):%0A%09'''%0A%09Return value of item on top of stack%0A%0A%09'''%0A%09return self.items%5B-1%5D%0A%0A    %0A    def size(self):%0A%09'''%0A%09Return number of items in stack%0A%0A%09'''%0A%09return len(self.items)%0A

Add Stack data structure