Skip to content

Commit 1c1a845

Browse files
Merge pull request #623 from jbhavya11/master
stack implementation using python
2 parents 95e6a72 + ac37ea5 commit 1c1a845

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

stack-implementtation.py

Lines changed: 10 additions & 0 deletions
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)