python (1)
python (1)
2) Pop(): Removes the top item from the stack and displays the item.
3) Display(): Displays all the items currently in the stack, starting from the top.
Set 2
1) Consider a binary file PERIPHERALS.dat contains the structure [PID, Name, Category and
Price].
Write a menu driven Python program with the following function definitions.
c) SEARCH(PID) -To search for the peripheral device which fall under output category
Set 3
1. Write a program to write data into binary file marks.dat and display the records
of students who scored more than 95 marks.
Set 4
Each student should be represented by a class with attributes: name, roll_number, and marks