Exception Handling in Python Class 12 Notes

Exception Handling in Python Here students of class 12 will learn about the  Exception Handling in Python. These notes are made to help the students in their board preparation. The topic  Exception Handling is introduced by the CBSE for the session 2023-24 onward.  Errors Errors in a program can be categorized into following types: 1. … Read more

Class 12 Computer Science Sample Paper with Explained Solution

Class 12 Computer Science Sample Paper with Explained Solution Session: 2023-24 Computer Science (083) Sample Question Paper (Theory) Time allowed: 3 Hours Maximum Marks: 70  General Instructions: Please check this question paper contains 35 questions. The paper is divided into 4 Sections- A, B, C, D and E. Section A, consists of 18 questions (1 … Read more

Python Program to Enter Update and Display Student data in binary file

Enter Update and Display Student data in binary file The given code is for creating a simple interactive menu-based program that allows you to manage student data using a Python dictionary and binary file storage. The program provides the following functionalities: 1. Add new student data: You can input the roll number, name, and contact … Read more

Create a CSV movies.csv to hold movie records like Movies ID Movies name and Rating (out of 5 stars) using the list.

Create a CSV movies.csv to hold movies’ records like Movies ID, Movies name, and Rating (out of 5 stars) using the list. from csv import writer import csv def create(): f = open(“e:\movies.csv”,”a”) dt = writer(f) dt.writerow([‘Movie_ID’,’Movie_Name’,’Movie_Rating’]) while True: mv_id= input(“Enter Movie ID:\t”) mv_name = input(“Enter Movie name:\t”) mv_rating = input(“Enter Movie Rating(out of 5 … Read more

Write a menu driven program in Python that asks the user to add display and search records of students stored in a binary file.

Write a menu driven program in Python that asks the user to add, display, and search records of students stored in a binary file. The student record contains roll no, name and test score. It should be stored in a dictionary object. Your program should pickle the object and save it to a binary file. … Read more

error: Content is protected !!