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: