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

Data Structures Class 12 Notes

Data Structures Class 12 Notes DATA STRUCTURES A data structure defines a mechanism to store, organise and access data along with operations (processing) that can be efficiently performed on the data. A data structure is a group of data that have different data types which can be accessed as a unit . For example, string … 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

Copywrite © 2020-2025, CBSE Python,
All Rights Reserved