Velammal Bodhi Campus
Velammal Bodhi Campus
Velammal Bodhi Campus
A Project Report On
Roll No :
Name : DEEPAK P
Class : XII
Mrs.Rajalakshmi.E
Department of Computer Science
VELAMMAL BODHI CAMPUS
CERTIFICATE
DEEPAK P
XII COMPUTER SCIENCE
ACKNOWLEDGEMENT
Last but not the least I thank all my friends who helped me in the
completion of this project.
CONTENTS
1. INTRODUCTION TO PYTHON
3. INTRODUCTION
4. OBJECTIVES
5. SYSTEM REQUIREMENTS
6. PROPOSED SYSTEM
7. BACKEND DETAILS
8. FRONTEND DETAILS
11. BIBLIOGRAPHY
INTRODUCTION TO PYTHON
History of Python
Python was developed by Guido van Rossum in the late eighties and early
nineties at the National Research Institute for Mathematics and Computer Science
in the Netherlands. Python is derived from many other languages, including ABC,
Modula-3, C, C++, Algol-68, SmallTalk, and Unix shell and other scripting
languages.
Python is copyrighted. Like Perl, Python source code is now available under
the GNU General Public License (GPL). Python is now maintained by a core
development team at the institute, although Guido van Rossum still holds a vital
role in directing its progress.
Python Features
● Easy-to-learn − Python has few keywords, simple structure, and a clearly
defined syntax. This allows the student to pick up the language quickly.
● Easy-to-read − Python code is more clearly defined and visible to the eyes.
● Easy-to-maintain − Python's source code is fairly easy-to-maintain.
● A broad standard library − Python's bulk of the library is very portable
and cross-platform compatible on UNIX, Windows, and Macintosh.
● Interactive Mode − Python has support for an interactive mode which
allows interactive testing and debugging of snippets of code.
● Portable − Python can run on a wide variety of hardware platforms and has
the same interface on all platforms.
● Extendable − You can add low-level modules to the Python interpreter.
These modules enable programmers to add to or customize their tools to be
more efficient.
● Databases − Python provides interfaces to all major commercial databases.
● GUI Programming − Python supports GUI applications that can be
created and ported to many system calls, libraries and windows systems,
such as Windows MFC, Macintosh, and the X Window system of Unix.
● Scalable − Python provides a better structure and support for large
programs than shell scripting.
Apart from the above-mentioned features, Python has a big list of
good features, few are listed below:–
● It supports functional and structured programming methods as well as OOP.
● It can be used as a scripting language or can be compiled to byte-code for
building large applications.
● It provides very high-level dynamic data types and supports dynamic type
checking.
● It supports automatic garbage collection.
● It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java
Task : To change the datatype of admno into char and increase the size as 5
Drop Table : This DDL command is used to remove a table from any existing
database.
Syntax:
Drop table < table name>
Example:
Sql> drop table student ;
Update: This DML command is used to change/modify the record(s) of any table.
The syntax is as follows
Syntax:
Update < tablename> Set column Name = value [ where < condition> ]
Example:
1. Update emp
Set sal = sal + sal * 0.05; ( Give an increment of 5 % to each employee )
2. update emp
set sal = sal+ sal * 0.05
where job =’PRESIDENT’; (Give an increment o f 5% to president only)
DELETE: This DML command is used to delete a row/ tuple(s) from a table.
The Syntax is as follows,
Syntax:
DELETE from <tablename > [ where < condition > ]
Example
1. Delete from emp ; ( delete all the records leaving it’s structure intact)
2. Delete from emp where sal >=3000 ;
Create View: This Command is used to create a new View in any existing database.
The syntax is as follows:
Syntax:
Create view < viewname> As Select command
Example:
create view abc as select empno,job,sal from emp;
Drop View : This command is used to drop any existing view from the database.
The syntax is as follows,
Syntax:
Drop View < viewname>
Example:
Drop view abc;
Interface Python with MySQL:
● Databases play a vital role in the efficient working of an organization.
● They are essentially collection of tables and are connected with each other
● through columns.
● These database systems support SQL, which is used to create, access and
manipulate data.
● The python programming language has powerful features for database programming.
● Python support various database servers like MySQL, Oracle, Sybase, mSQL,
Microsoft SQL server 2000 etc.
● For database programming the python DB-API is a widely used module that provides
a database application programming interface. It is a standard for database interface.
PYTHON - MYSQL CONNECTIVITY:
● Usually the data inputted by the user along with the generated output is
displayed but not stored because all execution takes place in RAM which is a
temporary memory and as soon as we close the form, its contents gets erased.
● Thus, when the application is executed the second time,it requires a new set
of inputs from the user.
● This can be overcome by sending the output generated and saving the input
fetched from the user in a database created at the back end of the application.
● The input is fetched from the user using python interface. This is known as
FRONTEND interface of the application.
● An application usually stores a lot of data in the form of a database which is not
directly accessible by the user.
● This database is used by the application to give suitable response to the user,
This database is called BACK-END databases.
Some important points are as follows:
● To connect to a database from within a programming application, you need a
framework that facilitates communication between two different genres of
software (programming application and DBMS).
● To connect front Python to MYSQL, you need a library called
MySQL connector.
● You must import mysql.connector in the Python program/script before writing
code of connectivity.
HARDWARE REQUIREMENTS
SOFTWARE REQUIREMENTS