Skip to content

Commit f968777

Browse files
authored
Create implementing stack using python
1 parent 07d6071 commit f968777

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

implementing stack using python

+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)