Skip to content

Commit ac37ea5

Browse files
authored
stack implementation using python
1 parent 1e128b6 commit ac37ea5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

stack-implementtation.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Python code to demonstrate Implementing
2+
# stack using list
3+
stack = ["Amar", "Akbar", "Anthony"]
4+
stack.append("Ram")
5+
stack.append("Iqbal")
6+
print(stack)
7+
print(stack.pop())
8+
print(stack)
9+
print(stack.pop())
10+
print(stack)

0 commit comments

Comments
 (0)