Python Program(0) Removed Removed
Python Program(0) Removed Removed
INPUT-
OUTPUT-
OUTPUT
OUTPUT
(3)
Q4) Write a menu driven program to perform
arithmetic operation (+,-,*,/) based on the user
choice.
INPUT
(4)
Nizam Uddin Siddiqui
(5) Nizam Uddin Siddiqui
Q5) Create a binary file with roll number,
name and marks. Input a roll number and
update the marks.
INPUT
INPUT
OUTPUT
OUTPUT
INPUT
OUTPUT
(16)
Q12). Write a program to create a CSV file to
store student data (Roll No., Name, Marks).
Obtain data from user and write 5 records into
the file.
INPUT
INPUT
OUTPUT
i
INPUT
(20)
Nizam Uddin Siddiqui
(21)
Nizam Uddin Siddiqui
(22)
Stack Operations:
1. push
2. pop
3. peek
4. Check if Stack is Empty
5. Display Stack
6. Exit
Enter your choice: 3
Top item is 57
stack Operations:
1. push
2. Pop
3. peek
4. Check if stack is Empty
5. Display Stack
6. Exit
E Enter your choice: 4
stack is not empty.
Stack Operations:
1 . push
2 . Pop
3. peek
4 . Check if Stack is Empty
5. Display Stack
6 . Exit
Enter your choice: S
stack elements: ['57']