|

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….

|

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…

|

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…

|

Data Structure- Searching and Sorting Techniques Notes Class 12

Searching and Sorting Techniques Notes Sorting Sorting means to arrange the data either in ascending order or descending order. It is the process of rearranging a sequence of objects so as to put them in some logical order.     Selection Sort :  Find the minimum element in unsorted array and swap it with the…

|

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…

|

Write a menu based program to add delete and display the record of players by using list as Stack in python

Write a menu based program to add delete and display the record of players by using list as Stack in python. Record of a player contains: Player code, score and Rank. Program to add delete and display the record of players by using list as Stack in python   player = [] ch = ‘y’…

|

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….