Write a program to implement stack using list and
user defined functions in python
Answers
Answered by
1
Explanation:
Python Program to Implement a Stack
Create a class Stack with instance variable items initialized to an empty list.
Define methods push, pop and is_empty inside the class Stack.
The method push appends data to items.
The method pop pops the first element in items.
The method is_empty returns True only if items is empty.
Similar questions