Simple Text Editor- Python Project for Class 12

Simple Text Editor- Python Project for Class 12   Source Code: #https://cbsepython.in import sys import os import shutil def leave(): sys.exit(“You are exiting from Editor”) def read(): try: file_name = input(“Enter file name: “) target = open(file_name, “r”) readfile = target.read() print(readfile) except Exception as e: print(“There was a problem: %s” % (e)) def delete():…

Bank Management- Python Project for class 12 MySQL Connectivity

Bank Management- Python Project Class 12   Source Code: #https://cbsepython.in print(“****BANK TRANSACTION****”) #creating database import mysql.connector mydb=mysql.connector.connect (host=”localhost”,user=”root”, passwd=”admin”) mycursor=mydb.cursor() mycursor.execute(“create database if not exists bank”) mycursor.execute(“use bank”) #creating required tables mycursor.execute(“create table if not exists bank_master(acno char(4) primary key,name varchar(30),city char(20),mobileno char(10),balance int(6))”) mycursor.execute(“create table if not exists banktrans(acno char (4),amount int(6),dot date,ttype char(1),foreign…

Rainbow Generator-Python Program for Class 12

Rainbow Generator-Python Program Source Code: import turtle colours=[‘#801ED0′,’#962CE4′,’#912CE2’, ‘#7C21D4′,’#731FCF’, ‘#6113C1′,’#4005AD’,’#2B049F’, ‘#28039E’,’#060390′, ‘#00038E’,’#001C9A’,’#0033A8′, ‘#014AB3′,’#0094DE’ ,’#00C8F9′,’#01E7CD’,’#01CE8B’, ‘#01B750′,’#07B635′ ,’#20BD26′,’#7CE413′,’#9CEE0D’, ‘#DFFC02′,’#F2FB00’, ‘#FEED01′,’#FFAF02′,’#FF9501’, ‘#FE5500′,’#FF2404′ ,’#FE0700’, ‘#FF0100’] wn=turtle.Screen() wn.bgcolor(‘black’) skk=turtle.Turtle() skk.speed(0) skk.width(1.5) skk.hideturtle() skk.left(90) x=0 a=100 b=45 while x<len(colours): skk.color(colours[x]) skk.penup() skk.setpos(b,0) skk.pendown() skk.circle(a,180,4000) skk.right(180) x=x+1 b=b+1.5 a=a+1.5 turtle.mainloop()   Output:    

Simple Calculator- Python Project for Class 11

Simple Calculator- Python Project for Class 11 Source Code: #Creater info print(“cbsepython.in:”) print(” covering all content for the cbse computer science students “) print(” “) print(“These Are the folowing set of Operations you can use :)”) print(“+ for ADDITION, “,”- for SUBSTRACTION, “,” * for MULTIPLICATION, “,”/ for DIVISION, “,”n for Power value”) print(” “)…

Cricket Game- Python Project for CBSE Class 12

Cricket Game- Python Project for CBSE Class 12   Source Code: # Cricket Game print(“”” ~~~~~~~~~~ Game of Cricket ~~~~~~~~~~ Instructions: 1. You have to select any random number from 1 to 6. 2. The computer will also select a number. 3. While batting, if the number selected by you and computer is different, then…

Number System Converter- Python Project for CBSE Class 11

Number System Converter- Python Project Source Code: # -*- coding: utf-8 -*- “”” @author: cbsepython “”” while 1>0: inp=int(input(“enter the number:”)) org=int(input(“enter it base:”)) to=int(input(“enter the base in which it is to be converted:”)) print(“\n”) ######################################################################@ if to==2 or to==8 or to==16 or to==10: out1=0 power=0 while inp>0: out1+=org**power*(inp%10) inp//=10 power+=1 print(“after conversion the result…