0% found this document useful (0 votes)
8 views11 pages

Python Stack Operations Menu Program

The document outlines three exercises focused on creating menu-based Python programs to implement stack operations (Push, Pop, Peek, and Display) using lists and dictionaries. Each exercise aims to manage student names and their marks, specifically pushing names of students who scored above 75 into the stack. All programs executed successfully as expected.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views11 pages

Python Stack Operations Menu Program

The document outlines three exercises focused on creating menu-based Python programs to implement stack operations (Push, Pop, Peek, and Display) using lists and dictionaries. Each exercise aims to manage student names and their marks, specifically pushing names of students who scored above 75 into the stack. All programs executed successfully as expected.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Ex.

No 13: Creating a menu based Python program to implement stack operations(Push,


Pop,Peek and Display) using List.

Aim:To write a menu based Python program to implement stack operations using List
Code :
Result : Program executed successfully as expected
[Link] 14: Write a menu (push,pop,display) based program to implement stack
operations with names of student and their mark in the dictionary and push the student
name into stack whose mark is greater then 75

Aim:To write a menu (push,pop,display) based program to implement stack operations


with names of student and their mark in the dictionary

Code :
Result : Program executed successfully as expected

OutPut:
[Link] 15: Write a menu (push,pop,display) based program to implement stack
operations with list input data. List contains following record of a student:
[student_name, marks, subject] . Push a list object containing name and marks of a
student who scored more than 75 marks in ‘CS’ to the stack

Aim:To write a menu (push,pop,display) based program to implement stack operations


with names of student and their mark in the list

Code :
Result : Program executed successfully as expected

OutPut:

You might also like