Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
class Stack :
    def __init__(self):
        self.items = []

    def push(self, item):
        self.items.append(item)

    def pop(self):
        return self.items.pop()

    def is_empty(self):
        return (self.items == [])
Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.8.2] on linux