Uploaded by ABHISHEK

program 22

advertisement
Python 3.9.10 (tags/v3.9.10:f2f3f53, Jan 17 2022, 15:14:21) [MSC v.1929 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
=============================== RESTART: D:/a.py ===============================
enter (push or pop)push
enter a number:25
Your stack:- [25]
enter(yes or no)yes
[25]
enter (push or pop)push
enter a number:76
Your stack:- [25, 76]
enter(yes or no)yes
[25, 76]
enter (push or pop)pop
Your stack:- [25]
enter(yes or no)yes
[25]
enter (push or pop)pop
Your stack:- []
enter(yes or no)yes
[]
enter (push or pop)pop
underflow
Your stack:- []
enter(yes or no)
Download