What are push and pop operations

Push- new data element is added at the top of stack
We can use <stack>.append(<item>)

Pop- data element is removed from the top of the stack
We can use <stack>.pop()

error: Content is protected !!
Scroll to Top