Professional Documents
Culture Documents
Cs Project
Cs Project
Cs Project
SUBMITTED BY:
2. Acknowledgement
3. Introduction
(Python + SQL)
5. Libraries
6. Modules
ADVANTAGES OF PYTHON
1. Easy to Use:
Python is compact and very easy to use
object oriented language with very simple
syntax rules. It is very high level language
and thus very-very programmer-friendly.
2. Expressive Language:
Python is an expressive language - fewer
lines of code and simpler syntax.
3.Interpreted Language:
Python is an interpreted language, not a
compiled language. It makes Python an
easy-to-debug language
4. Open Source
Open source and large active community
base: Python is open source, and it has a
large and active community that
contributes to its development and
provides support.
LIMITATIONS OF PYTHON
1. Not the Fastest Language
Python is an interpreted language not a fully
compiled one. Fully compiled languages are faster
than their interpreted counterparts. So, Python
offers the development times but execution-times
are at fast compared to some compiled languages.
RULES
ADVANTAGES OF SQL:
4. Portable
It is highly portable as used in PCs, computers,
independent laptops having any operating
system such as Windows, Linux, Mac etc. It can
also be embedded with other applications.
5. Highly Interactive
As it has simple commands for all purposes,
becomes an interactive language for its users. It
easy to understand and the commands are also
understandable to the non-programmers.
LIMITATIONS OF SQL:
1. Limited Scalability for Complex Queries:
While SQL is scalable for basic queries, it may face
limitations when dealing with highly complex
queries or large datasets. In such cases,
performance issues may arise, impacting the
responsiveness of the database.
4. Vendor-specific Implementations:
Different database vendors may implement SQL in
slightly different ways, leading to variations in
syntax and functionalities. This can create
compatibility issues when migrating between
database systems.
5. Security Concerns:
Despite its security features, SQL databases are not
immune to security threats. For instance, SQL
injection attacks can exploit vulnerabilities in poorly
coded applications, potentially leading to
unauthorized access or data breaches.
9. Lack of Flexibility:
While the structured nature of SQL is advantageous
in many scenarios, it can be limiting for applications
that require frequent schema changes or dynamic
data structures. NoSQL databases may be more
suitable for such cases.
LIBRARIES
1.PYTHON LIBRARIES
What is library?
Python has created several open-source
libraries, each with its root source. A library is
an initially merged collection of code scripts
that can be used iteratively to save time. It's
similar to a physical library in that it holds
reusable resources, as the name implies.
A Python library is also a group of
interconnected modules. It contains code
bundles that can be reused in a variety of
programs. It simplifies and facilitates Python
programming for programmers. So then we
won't have to write the very same different
programs. Machine learning, computer science,
data visualization, and other fields rely heavily
on Python libraries.
How Python library works?
A Python library is merely a bunch of code
scripts or modules of codes that we can utilize
in a program for specific operations, as stated
above. We use libraries to don't have to rewrite
code already written in our program. However,
here's how it works. The library files have a DLL
extension in the MS Windows environment
(Dynamic Load Libraries). When we import a
library to our program and run it, the linker
looks for that library automatically. It extracts
the library's functions and then interprets the
program accordingly. This is how we use library
methods in our program.
TYPES OF LIBRARIES IN
PYTHON
a. Standard Libraries of Python
Python's syntax and tokens are all contained in
the Python Standard Library. It comes with
built-in modules that give the user access to
basic functions few essential modules.The
Python libraries have been written in the C
language for the most part The Python
Standard Library is extremely important.
Programmers won't be able to use Python's
features unless they have it. Apart from that,
Python has several libraries that make a
programmer's life easier.
b. Matplotlib
The plotting of numerical data is the
responsibility of this library. It's for this reason
that it's used in analysis of data. It's an open-
source library that plots high-definition figures
such as pie charts,graph etc.
c. NumPy
NumPy is one of the most widely used open-
source Python packages, focusing on
mathematical and scientific computation. It has
built-in mathematical functions for convenient
computation and facilitateslarge matrices and
multidimensional data.It can be used for
various things, including linear algebra. Along
with this, it can be used as a random number
generator.In Python, NumPy is recommended
over lists because it uses less memory, is faster,
and is more convenient
d. Pandas
Pandas is an open source library licenced under
the Berkeley Software Distribution (BSD). In the
domain of data science, this well-known library
is widely used. They're mostly used for analysis,
manipulation, and cleaning of data, among
other things.
e. Scipy
Scipyi Scipy is a Python library. It is an open-
source library, especially designed for scientific
computing, information processing, and high-
level com . A large number of user-friendly
methous and functions for quick and
convenient computation are included in the
library. Scipy can be used for mathematical
computations alongside NumPy.
f. Scikit-learn
Scikit-learn is also an open-source machine
learning library based on Python. Popular
algorithms and the SciPy, NumPy, and
Matplotlib packages are all already pre-
included in this library. The most well- known
Scikit-most-learn application is for Spotify
music recommendations.
MODULE
The act of partitioning a program into individual
components (known as modules) is called
modularity.
A module is a separate unit in itself.
Advantage of module: -
It creates a number of well defined,
documented boundaries within the
program.
Its contents can be reused in other
programs, without having to rewrite or
recreate them
Python module
A Python module is a file containing Python
definitions and statements. A module can
define functions, classes, and variables.
Grouping code into a module makes the code
easier to understand and use. Some of the
modules from python's standard library are
math, random,cmath etc.