Gardenia Public School
Kalyanpur
Session 2024-2025
Computer Science Project File
Submitted To: Submitted By:
Subject Teacher Name-
Class-
PROJECT BASED ON
Basic
Search Engine
System
Index
S No. Content Page No.
1) Certificate 4
2) Acknowledgement 5
3) Introduction 6
4) Source Code 7
5) Output Window 10
6) Bibliography 13
CERTIFICATE
This is to certify that <Your name here> of class XII
(STREAM) of <School name> has done his/her project on
<Project name > under my supervision. He / She has
taken interest and has shown at most sincerity in
completion of this project. I certify this Project up to my
expectation & as per guidelines issued by CBSE, NEW
DELHI.
Internal Examiner
External Examiner
Acknowledgement
It is with pleasure that I acknowledge my sincere
gratitude to our teacher, < Teacher name > who taught
and undertook the responsibility of teaching the subject
computer science. I have been greatly benefited from
his/her classes.
My sincere thanks goes to our Principal <Principal
name> who has always been a source of encouragement
and support and without whose inspiration, this project
would not have been a successful.
Finally, I would like to express my sincere appreciation
for all the other students for my batch their friendship &
the fine times that we all shared together.
Last but not least, I would like to thank all those who had
helped directly or indirectly towards the completion of
this project.
Name of student
Class
Introduction
Basic Search engine system project in python is a simple
console application built without the use of graphics. This
project Basic search engine help us to search details of
any person. In this project we tried to enter all details of
any person like name, mobile, email and city etc. and
tried to maintain all the possibility which may help the
user to enter more record user requires.
Some of the features of the program are:
1) User can get record of any specific person.
2) User can get all records inserted.
3) User can enter records of any person.
4) User can delete any record.
Source Code
import [Link]
mydb=[Link](host="localhost",us
er="root",
password="123456",database="project")
def enter():
mycursor=[Link]()
y="y"
while y=="y":
nm=input("Enter name:")
mob=input("Enter Mobile number:")
em=input("Enter email id:")
c=input("Enter City:")
[Link]("insert into
data_entry(name,mob,email,city)
values('{}','{}','{}','{}')".format(nm,mob,em,c)
)
[Link]()
print([Link],"Record
Inserted")
y=input("Do you want to insert more
data:")
main()
def search():
mycursor=[Link]()
nm=input("Enter name to be search:")
[Link]("select * from data_entry
where name='{}'".format(nm))
myrecords=[Link]()
print("Name \t Mobile Number \t email id \t\
t city")
for i in myrecords:
print(i[0],'\t',i[1],'\t',i[2],'\t',i[3])
print("Total number of rows
retrieved",[Link])
main()
def delete():
mycursor=[Link]()
nm=input("Enter name to be delete:")
[Link]("delete from data_entry
where name='{}'".format(nm))
[Link]
print("Total number of rows
Deleted",[Link])
main()
def alldata():
mycursor=[Link]()
[Link]("Select * from data_entry")
myrecords=[Link]()
print("Name \t Mobile Number \t email id \t\
t city")
for i in myrecords:
print(i[0],'\t',i[1],'\t',i[2],'\t',i[3])
print("Total number of rows
retrieved",[Link])
main()
def main():
print("Welcome to Search engine System :Main
menu")
print(" 1. Search any one by name\n 2. Enter
new data \n 3. Delete any data\n 4. Show all
data")
ch=int(input("Enter your Choice:"))
if ch==1:
search()
elif ch==2:
enter()
elif ch==3:
delete()
elif ch==4:
alldata()
else:
print("Enter correct choice")
main()
main()
Output:
Main menu:
Press 1 for Search any person or firm by name:
Press 2 for Entering New Entry or Data about any person:
Press 3 for deleting any record:
Press 4 to show all records:
Tables in Database
Bibliography
Book Name
Preeti Arora
Website
[Link]
[Link]
THANK
YOU