You are on page 1of 2

Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.

1916 64 bit (AMD64)] on win32


Type "help", "copyright", "credits" or "license()" for more information.
>>>
========= RESTART: D:/python xii/practical/latest/Ex.No_13/Ex.No_13.py =========
***********STACK EXECUTION********
1.PUSH
2.POP
3.PEEK
4.Show Stack
0.Exit
Enter your choice:1
Enter item to push :12
***********STACK EXECUTION********
1.PUSH
2.POP
3.PEEK
4.Show Stack
0.Exit
Enter your choice:1
Enter item to push :13
***********STACK EXECUTION********
1.PUSH
2.POP
3.PEEK
4.Show Stack
0.Exit
Enter your choice:4
(Top)13 <==12 <==
***********STACK EXECUTION********
1.PUSH
2.POP
3.PEEK
4.Show Stack
0.Exit
Enter your choice:3
Top Item: 13
***********STACK EXECUTION********
1.PUSH
2.POP
3.PEEK
4.Show Stack
0.Exit
Enter your choice:2

Deleted item was: 13


***********STACK EXECUTION********
1.PUSH
2.POP
3.PEEK
4.Show Stack
0.Exit
Enter your choice:4
(Top)12 <==
***********STACK EXECUTION********
1.PUSH
2.POP
3.PEEK
4.Show Stack
0.Exit
Enter your choice:

You might also like