Library Management System Python Project for Class 12

Library Management System Python Project for Class 12 # Python Project Library Management System us MySql Connectivity.    import mysql.connector as sqlctr import sys from datetime import datetime mycon = sqlctr.connect(host=’localhost’, user=’root’, password=’admin’) if mycon.is_connected(): print(‘\n’) print(‘Successfully connected to localhost’) else: print(‘Error while connecting to localhost’) cursor = mycon.cursor() #creating database cursor.execute(“create database if not … Read more

Python MySQL Connectivity Notes Class 12

Python MySQL Connectivity Notes Class 12   Interface Python with MySQL database Contents: ♦  Connecting SQL with Python ♦  Creating database connectivity application ♦  Performing insert, delete, update, queries ♦  Display data by using fetchone(), fetchall(),fetchmany(), rowcount()   Database connectivity Database connectivity refers to connection and communication between an application and a database system. The … Read more

Book Store Management Python Project for Class 12

Book Store Management Python Project for Class 12 #Python Project for class 12 Computer Science, using mySQL connectivity.    Note: If you found something wrong or unable to execute the program kindly mention in comment box provided below the article. Source Code: #https://cbsepython.in import mysql.connector mydb=mysql.connector.connect (host=”localhost”, user=”root”, password=”admin”) #CREATING DATABASE AND TABLE mycursor=mydb.cursor() mycursor.execute(“create … Read more

COVID-19 Data Visualization Python Project Class 12

COVID-19 Data Visualization Python Project Class 12   # Python Project for Class 12 Informatics Practices (065), Python MySQL program containing bar graph, line chart, scatter chart Note: If you found something wrong or unable to execute the program kindly mention in comment box provided below the article.     #cbsepython.in import pandas as pd … Read more

Hospital Management System Python Project Class 12

Hospital Management System Python Project Class 12   Software requirements Operating system : windows 10 Python 3 : for execution of program Mysql : for storing data in the database Python – mysql connector : for database connectivity     ##hospital management software @cbsepython.in ##PRINTING WELCOME NOTE while(True): print(“”” ================================ WELCOME TO MYHOSPITAL ================================ “””) … Read more

ATM Management Python Project for Class 12

ATM Management Python Project for Class 12     #!/usr/bin/python #cbsepython.in import getpass import string import os # creating a lists of users, their PINs and bank statements users = [‘jitendra’, ‘sunny’, ‘vivek’] pins = [‘1111’, ‘2222’, ‘3333’] amounts = [1000, 2000, 3000] count = 0 # while loop checks existance of the enterd username … Read more

Solved Computer Science Sample Paper Term 2 Class 12

Computer Science Sample Paper Term 2 Class 12 Sample Question Paper COMPUTER SCIENCE (Code: 083) Maximum Marks: 35 /Time: 2 hours   General Instructions *  The question paper is divided into 3 sections – A, B and C * Section A, consists of 7 questions (1-7). Each question carries 2 marks. * Section B, consists … Read more

Create a CSV file by entering user-id and password, read and search the password for given userid

Create a CSV file by entering user-id and password, read and search the password for given userid # Python Program   import csv with open(“user_info.csv”, “w”) as obj: fileobj = csv.writer(obj) fileobj.writerow([“User Id”, “password”]) while(True): user_id = input(“enter id: “) password = input(“enter password: “) record = [user_id, password] fileobj.writerow(record) x = input(“press Y/y to … Read more

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