XII CS-front page of project file
XII CS-front page of project file
IN
PYTHON & SQL
SESSION – 2024-25
NAME: ______________
ROLLNO: ________________
INDEX
1 Certificate 1
2 Acknowledgement 2
3 Introduction to Python 3
5 Introduction to CSV 9
7 Project Description 12
8 Source Code 14
9 Output Screens 28
10 Bibliography 48
AMITY INTERNATIONAL SCHOOL
VIRAJ KHAND, LUCKNOW
CERTIFICATE
ACKNOWLEDGEMENT
The Python interpreter and the extensive standard library are freely
available in source or binary form for all major platforms from the
Python Web site, https://www.python.org/, and may be freely distributed.
The same site also contains distributions of and pointers to many free
third party Python modules, programs and tools, and additional
documentation.
The Python interpreter is easily extended with new functions and data
types implemented in C or C++ (or other languages callable from C).
Python is also suitable as an extension language for customizable
applications.
attributes
behavior
Person is an object,
Object
Methods
Methods are functions defined inside the body of a class. They are used
to define the behaviors of an object.
Inheritance
Encapsulation
Polymorphism
When these exceptions occur, it causes the current process to stop and
passes it to the calling process until it is handled. If not handled, our
program will c
A critical operation which can raise exception is placed inside the try
clause and the code that handles exception is written in except clause.
Introduction to MYSQL
DDL
DDL is short name of Data Definition Language, which deals with
database schemas and descriptions, of how the data should reside in the
database.
CREATE - to create a database and its objects like (table, index, views,
store procedure, function, and triggers)
DML
DML is short name of Data Manipulation Language which deals with data
manipulation and includes most common SQL statements such SELECT,
INSERT, UPDATE, DELETE, etc., and it is used to store, modify, retrieve,
delete and update data in a database.
DCL
DCL is short name of Data Control Language which includes commands
such as GRANT and mostly concerned with rights, permissions and other
controls of the database system.
TCL
TCL is short name of Transaction Control Language which deals with a
transaction within a database.
Pass the database details like HostName, username, and the database
password in the method call. The method returns the connection object.
<my_cur> = conn.cursor()