There are different method to implement stack in python
one of theme i am explain in detailed
# Python program to 
# demonstrate stack implementation 
# using list 
stack = [] 
# append() function to push 
# element in the stack 
stack.append('a') 
stack.append('b') 
stack.append('c') 
print('Initial stack') 
print(stack) 
# pop() fucntion to pop 
# element from stack in 
# LIFO order 
print('\nElements poped from stack:') 
print(stack.pop()) 
print(stack.pop()) 
print(stack.pop()) 
print('\nStack after elements are poped:') 
print(stack) 
# uncommenting print(stack.pop()) 
# will cause an IndexError
# as the stack is now empty
OUTPUT
Initial stack
['a', 'b', 'c']
Elements poped from stack:
c
b
a
Stack after elements are poped:
[]
Best of luck!!!!