Computer Science, asked by aslamnilamboor123, 6 months ago

write a function in python PUSH(Max)where mac is a list of numbers into a stcak implemented by using a list. Display the stack​

Answers

Answered by csaragathwala784634
0

Explanation:

Implementation using list: Python's buil-in data structure list can be used as a stack. Instead of push(), append() is used to add elements to the top of stack while pop() removes the element in LIFO order.

Similar questions