This project implements a Stack data structure using Python lists (arrays).
It allows runtime interaction with the user to perform operations such as:
push(x)
→ Insert an element into the stackpop()
→ Remove the top elementpeek()
→ View the top elementisEmpty()
→ Check if the stack is emptysize()
→ Get the number of elements in the stackdisplay()
→ Show the current stack
- Python 3.7 or higher
- Clone the repository:
git clone https://github.com/Mohd063/stack-array.git cd stack-array