Python Report of Ankush Jat
Python Report of Ankush Jat
IndustrialTrainingReport
On
Python programing
Submitted
inpartialfulfillment
forthe award oftheDegreeOf
Bachelor of Technology in
Electrical Engineering
SubmittedTo: SubmittedBy:
Dr. CHIRAG ARORA ANKUSH JAT
HOD, EE 3rd Sem. EE
ROLL NO-
23EACEE004
Department of Electrical Engineering,
Arya College Of Engineering, Jaipur
Rajasthan Technical University,
Kota (2024-25)
ARYACOLLEGE OF ENGINEERING
SP-40,RIICO Industrial Area, Jaipur(Raj)-302028
Certificate
i
Training Certificate
ii
Candidate’s Declaration
Iherebydeclarethatthework,whichisbeingpresentedintheIndustrialTrainingreport,
entitled“PYTHON PROGRAMING ”in partial fulfillment for the award of
Degree of “Bachelor of Technology” in Department of Computer Science
&Engineering with Specialization in Computer Engineering and submitted to
the Department of Artificial intelligence & Data Science, Arya College of
Engineering.
(Signature of Candidate)
Candidate Name
ANKUSH JAT
ROLL NO.
23EACEE004
iii
Abstract
One of Python's key elements is its cross-stage similarity, making it reasonable for
improvement across various working frameworks. Besides, Python's dynamic composing,
trash assortment, and extensive troubleshooting instruments make it an exceptionally
compelling device for fast prototyping and improvement.
Because of its flexibility and simplicity of joining with different dialects and advancements,
Python has turned into the language of decision in different areas, like logical registering, web
improvement, robotization, information science, and man-made reasoning. The continuous
development of its environment and solid local area support guarantee that Python will keep on
assuming a focal part in the developing scene of programming improvement
iv
Acknowledgement
I would like to thanks the Department of artificial intelligence and data science, Arya College
of Engineering, Head Of Department Dr. Chirag Arora for providing us the opportunity to
have such a training where we could get the exposure of competing and performing with
students from other colleges and universities.
I would also like to thank all the teaching assistants at Arya College Of Engineering, Jaipur,
they have been very helpful throughout the process both in solving our doubts and motivating
us to complete our tasks and assignments.
I would also like to express my deepest appreciation for Mr. Ajay Sir for guiding me
throughout the training and all the people who have directly or indirectly helped me to
successfully complete the training.
ANKUSH JAT
Roll NO.
23EACEE004
v
Learning/Internship Objectives
• The essential target of this learning or temporary job an open door in Python
writing computer programs is to foster an extensive comprehension of
Python's center ideas, sentence structure, and best practices, while acquiring
involved insight in genuine applications. This temporary job intends to
furnish me with the abilities to compose spotless, effective, and versatile
Python code for various areas, for example, web improvement, information
investigation, computerization, AI, and that's just the beginning.
2. Work on Genuine Projects: Apply Python to tackle pragmatic issues and add
to projects that include information handling, web scratching, Programming
interface reconciliation, or growing little applications.
vi
TABLE OF CONTENTS
TITLE PAGENO.
Cover
PageDepartment i
Certificate Training ii
Certificate
Candidate’s iii
DeclarationAbstract iv
AcknowledgementLearning/ v
InternshipObjectives vi
ListofTables vii-viii
Chapter1:Introduction 1
Chapter2:History 2
Chapter3:Definition 3
Chapter4:Architectureofpython programing 4-5
Chapter 5: Object Oriented Programing(oops)in 6
python
Chapter 6: Application
Chapter7: Source Code 7
Chapter8: Project Implementation 8
Chapter9:Conclusion 9
References 10
1
Chapter1
INTRODCTION
Introduction to Python
Python is a high-level, interpreted programming language known for its simplicity,
versatility, and readability. Created by Guido van Rossum and first released in 1991,
Python has become one of the most popular programming languages in the world. Its
design philosophy emphasizes code readability and simplicity, allowing developers to
write clear, logical code for both small and large-scale projects.
Key Features of Python
1. Simple and Readable Syntax: Python's clean and straightforward syntax makes
it easy to learn and use, even for beginners. This readability promotes better
collaboration and maintenance of code.
2. Versatility: Python is a general-purpose language that can be used for a wide
range of applications, including web development, data analysis, artificial
intelligence, scientific computing, and more.
3. Extensive Standard Library: Python comes with a comprehensive standard
library that supports many common programming tasks, such as file handling,
internet protocols, and data manipulation.
4. Cross-Platform Compatibility: Python is available on various operating
systems, including Windows, macOS, Linux, and many others, making it a
versatile choice for developers.
5. Dynamic Typing: Python uses dynamic typing, which means variable types are
determined at runtime. This flexibility allows for rapid development and
prototyping.
6. Strong Community Support: Python has a large, active community of
developers who contribute to a wealth of resources, tutorials, and third-party
libraries, enhancing its functionality and usability.
7. Interpreted Language: As an interpreted language, Python executes code line
by line, which can simplify debugging and testing processes.
2
Chapter2
HISTORY
Early Development
Python was created by Guido van Rossum in the late 1980s at Centrum Wiskunde&
Informatica (CWI) in the Netherlands. The language was conceived as a successor to
the ABC language, which van Rossum had worked on in the early 1980s. Python's
design aimed to address some of ABC's shortcomings, providing an easy-to-read syntax
that would appeal to both beginners and experienced programmers.
Initial Release
Python 0.9.0, the first public release, was launched in February 1991. This initial
version included core features such as exception handling, functions, and the core data
types: lists, dicts, str, and so on. Importantly, it also featured a module system that
allowed users to extend the language with their own modules.
Python 1.0
Python 1.0 was released in January 1994. This version introduced significant new
features like:
Lambda, Map, Filter, Reduce: Functional programming constructs that have
become staples in the Python language.
Module Support: Enhancing the modularity and reusability of code.
Standard Library Enhancements: Addition of new modules and libraries to
streamline development.
Python 2.x Series
The Python 2.0 version was released on October 16, 2000. Key features of Python 2.0
included:
List Comprehensions: A powerful and concise way to create lists.
Garbage Collection: Automatic management of memory through garbage
collection.
Unicode Support: Improved support for Unicode, essential for
internationalization.
Python 2.x series saw numerous enhancements over the years, solidifying Python’s
place in the programming world. The final release in this series, Python 2.7, was
released in July 2010.
Python 3.x Series
Python 3.0, also known as "Python 3000" or "Py3k," was released on December 3,
2008. This version was not backward-compatible with Python 2.x, aiming to correct
design flaws and remove redundant constructs. Key features of Python 3.0 included:
Print as a Function: Transitioning the print statement to a print() function.
Integer Division: Changing integer division behavior to produce floating-point
3
results.
Unicode by Default: All text strings are Unicode by default, enhancing support
for internationalization.
Python 3.x series continues to evolve with regular updates, bringing numerous
enhancements and performance improvements. Python 3.9, released in October 2020,
introduced features like flexible function and variable annotations, dictionary union
operators, and more.
Present Day
As of now, Python remains one of the most popular and widely used programming
languages globally. It is the language of choice for various domains including web
development, data science, artificial intelligence, scientific computing, and automation.
Python's extensive standard library, vibrant community, and simplicity continue to
attract new learners and experienced developers alike.
4
Chapter3
DEFINITION
Definition of Python
Python is a high-level, interpreted programming language known for its simplicity,
readability, and versatility. It was created by Guido van Rossum and first released in
1991. Python's design philosophy emphasizes code readability and syntax that allows
programmers to express concepts in fewer lines of code compared to languages like C+
+ or Java.
Key characteristics of Python include:
Ease of Use and Learning: Python's straightforward syntax makes it accessible
to beginners while being powerful enough for experienced developers.
Extensive Standard Library: Python comes with a wide array of modules and
libraries that support many common programming tasks, from web development
to data analysis.
Interpreted Language: Python code is executed line by line, which facilitates
testing and debugging.
Cross-Platform Compatibility: Python runs on multiple operating systems,
including Windows, macOS, and Linux.
Object-Oriented and Functional Programming: Python supports multiple
programming paradigms, including procedural, object-oriented, and functional.
5
Chapter4
ARCHITECTUREOFPYTHON PROGRAMING
6
commonly utilized in scientific computing.
3. Presenting and Visualizing Data
Effective presentation and visualization of data are crucial for understanding and
decision-making. Python provides several libraries for these tasks.
a. Using Matplotlib for Visualization
Definition: Matplotlib is a popular library for creating static, animated, and
interactive visualizations.
Use Case: Creating bar charts, line graphs, scatter plots, and more.
b. Using Seaborn for Advanced Visualization
Definition: Seaborn is a statistical data visualization library built on top of
Matplotlib.
Use Case: Creating attractive and informative statistical graphics.
c. Using Plotly for Interactive Visualizations
Definition: Plotly enables interactive graphs, useful for web-based applications
or exploring data interactively.
4. Managing and Querying Data
After data is structured and processed, querying, filtering, or aggregating it is often
necessary. Python makes this easy with libraries like Pandas.
a. Filtering Data with Pandas
Definition: Pandas allows filtering data in DataFrames based on conditions,
similar to SQL queries.
Use Case: SQL-like querying on structured data.
7
Chapter5
Object Oriented Programming(oops)in
python
Classes are templates or blueprints for creating objects. They define the
attributes and methods that an object of the class will have. A class is like a
concept or structure, and objects are actual instances created from that class
Objects are instances of a class. When an object is created from a class, it holds
the data and can use the methods defined in the class. You can think of objects as
real-world entities created from a blueprint.
2. Encapsulation
8
Encapsulation refers to bundling the data (attributes) and the methods that manipulate
the data into a single unit, known as a class. It also means restricting access to some of
the object's components, making it more secure.
Public attributes and methods are accessible from outside the class, while
private attributes and methods are hidden from the outside world. This is done
to protect the integrity of the data.
3. Inheritance
Inheritance is the mechanism in OOP that allows a new class (child class or subclass)
to inherit the attributes and methods of an existing class (parent class or superclass).
This enables code reuse and helps in creating a hierarchical class structure.
A subclass can extend or modify the behavior of the parent class by adding or
overriding methods and attributes.
4. Polymorphism
5. Abstraction
9
Chapter 6
Application
1. Web Development
Frameworks: Python offers powerful web frameworks such as Django and Flask
that simplify the process of building robust web applications. These frameworks
provide tools and libraries for handling common web development tasks, such as
URL routing, database interaction, and form handling.
Use Cases: Creating dynamic websites, web APIs, content management systems,
and more.
5. Scientific Computing
Libraries: Python is widely used in scientific research and computing due to
libraries like SciPy and SymPy, which provide tools for mathematical
calculations, symbolic computation, and scientific simulations.
Use Cases: Scientific research, simulations, mathematical modeling, and
engineering analysis.
10
6. Game Development
Libraries: Python offers game development libraries such as Pygmy, which
provide tools for creating 2D games. These libraries handle graphics, sound, and
input, making game development more accessible.
Use Cases: Developing 2D games, prototypes, and educational games.
7. Network Programming
Libraries: Python's libraries like socket, Twisted, and Paramiko allow developers
to perform network-related tasks such as creating servers, clients, and secure
connections.
Use Cases: Building network applications, developing network protocols, and
automating network configurations.
9. Education
Features: Python's simple syntax and readability make it an ideal language for
teaching programming and computer science concepts. Many educational
institutions use Python as an introductory language for students.
Use Cases: Teaching programming fundamentals, computer science education,
and developing educational tools.
11
Chapter 7
Source code
12
Chapter 8
Project implementation
This script take a link of any URL and generate a QR code corresponding to it.
Library Used
qrcode
To install required external modules
Run pip install qrcode
How to run the script
Provide your desired URL in the script
Execute python3 generate_qrcode.py
13
Chapter 9
Conclusion
Conclusion
Python has firmly established itself as one of the most versatile and powerful
programming languages available today. Its simplicity and readability make it an
excellent choice for beginners, while its extensive libraries and frameworks enable
experienced developers to tackle complex tasks with ease.
Python's applications span a wide array of fields including web development, data
science, machine learning, artificial intelligence, automation, scientific computing,
game development, and more. The language's dynamic typing, high-level data
structures, and robust standard library provide the tools necessary for rapid
development and efficient problem-solving.
The strong community support and active development of Python ensure that it
continues to evolve, keeping pace with emerging technologies and industry trends. This
ongoing growth makes Python not only a valuable skill for developers but also a critical
tool for innovation across various domains.
In summary, Python's blend of simplicity, power, and versatility makes it a cornerstone
of modern programming, capable of addressing the diverse needs of today's
technological landscape.
14
REFERENCE: -
BOOKS:
WEBSITES:
15