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
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
Science,
3 months ago
Computer Science,
3 months ago
Environmental Sciences,
3 months ago
India Languages,
6 months ago
Math,
6 months ago
English,
11 months ago
English,
11 months ago