Skip to content

Commit 50c425c

Browse files
Merge pull request #680 from avi181197/patch-2
Create implementing stack using python
2 parents ecc4b1d + f968777 commit 50c425c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

implementing stack using python

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)