PW Akshay

Generation

generate functionFri, 02 Dec 2022

Write a Python program to implement a stack using list.

stack = [] stack.append(3) stack.append(2) stack.append(1) print stack print stack.pop() print stack

Want to kickstart your project?Use the new AI Studio to create your code