Skip to content

Commit 245e139

Browse files
authoredJul 27, 2019
Update Exercise_1.py
1 parent 0f6c354 commit 245e139

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
 

‎Exercise_1.py

+21
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
1+
class myStack:
2+
def __init__(self):
3+
4+
def isEmpty(self):
5+
6+
def push(self, item):
7+
8+
def pop(self):
9+
10+
11+
def peek(self):
12+
13+
def size(self):
14+
15+
def show(self):
16+
117

18+
s = myStack()
19+
s.push('1')
20+
s.push('2')
21+
print(s.pop())
22+
print(s.show())

0 commit comments

Comments
 (0)
Please sign in to comment.