0% found this document useful (0 votes)
18 views

Python Report of Ankush Jat

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Python Report of Ankush Jat

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 22

A

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

Department of Electrical Engineering

Certificate

This is to certify that the work, which is being presented in the


Practical training seminar report for practical training taken
at“UPFLAIRS.PVT.LTD, “ JAIPUR RAJASTHAN” e n t i t l e d
“PYTHON PROGRAMING” submittedby Mr. ANKUSH JAT, a
student of second year (3rd Sem.) B.Tech. in Electrical Engineering
as a partial fulfillment for the award of degree of bachelor of
technology is a record of student’s work carried out and found
satisfactory for submission.

Dr. Chirag Arora


Head Of Department

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

Python is a significant level, deciphered programming language known for its


effortlessness, comprehensibility, and adaptability. Created by Guido van Rossum and first
delivered in 1991, Python underlines code coherence and an unmistakable sentence
structure that permits developers to communicate ideas in less lines of code. Its plan
theory focuses on convenience and efficiency, going with it a famous decision for the two
fledglings and experienced designers.

Python upholds various programming ideal models, including procedural, object-situated,


and useful programming. The language has a huge standard library, which offers modules
and bundles for different undertakings like record I/O, web improvement, information
examination, man-made brainpower, and AI. Its people group driven advancement
guarantees constant improvement, with new libraries and systems being consistently
added.

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

On the completion of the industrial training on Python programming.

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.

1. Master Python Fundamentals: Fabricate major areas of strength for an in-


Python programming by understanding factors, information structures, control
stream, works, and item situated programming (OOP) standards.

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.

3. Learn Libraries and Frameworks**: Gain capability in well-known Python


libraries like NumPy, Pandas, Matplotlib, Flagon, Django, and TensorFlow, and
comprehend how to involve these apparatuses for information control,
perception, web advancement, and AI.

4. Understand Best Practices: Learn industry-standard coding works on


incorporating code forming with Git, troubleshooting, testing, and
documentation, to compose spotless, viable, and proficient code.

5. Collaborate in a Group Environment: Foster cooperation and relational


abilities by teaming up with guides and different designers, acquiring openness to
spry techniques, and adding to group situated undertakings.

6. Problem-Addressing and Algorithmic Thinking: Reinforce critical thinking


abilities by handling algorithmic difficulties, streamlining code, and learning
information designs and calculations applicable to certifiable situations.

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

Architecture of Python Programming


Python is a powerful and versatile programming language that excels in information
design, enabling users to structure, process, and visualize data efficiently. The
following sections outline how Python's architecture supports these tasks.
1. Organizing Data with Data Structures
Python offers a variety of built-in data structures that facilitate the organization and
manipulation of information.
a. Lists
 Definition: Lists are ordered, mutable collections that can hold items of different
types.
 Use Case: Storing a collection of items or maintaining ordered data.
b. Dictionaries
 Definition: Dictionaries store data in key-value pairs, making them ideal for
structured information.
 Use Case: Storing structured data such as records, attributes, or configurations.
c. Tuples
 Definition: Tuples are similar to lists but are immutable. Once created, their
elements cannot be changed.
 Use Case: Storing fixed data like coordinates, dates, or records that should not be
modified.
d. Sets
 Definition: Sets are unordered collections of unique elements.
 Use Case: Eliminating duplicates or checking membership.
2. Data Processing and Manipulation
Python provides various methods for processing and manipulating data, from simple
functions and loops to advanced libraries.
a. List Comprehension
 Definition: List comprehensions allow the creation of new lists based on existing
ones using concise syntax.
 Use Case: Transforming or filtering data.
b. Using Loops for Data Processing
 Definition: Loops (such as for and while) allow iteration over data structures to
perform operations on each item.
 Use Case: Iterating over data for processing tasks.
c. Working with External Libraries (Pandas and NumPy)
 Pandas: A powerful library for data manipulation and analysis, especially with
large datasets. Provides the DataFrame object for efficient handling of tabular
data.
 NumPy: A library used for handling large arrays and numerical computations,

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

Object-Oriented Programming (OOP) is a programming paradigm that is based on the


concept of objects. These objects are instances of classes, which can have attributes
(data) and methods (functions). The goal of OOP is to model real-world entities and
their interactions, making the code more modular, maintainable, and reusable.

Python, being an object-oriented language, offers an easy-to-understand and intuitive


approach to OOP. Below are the core principles of OOP that Python supports.

Core Concepts of OOP in Python

1. Classes and Objects


2. Encapsulation
3. Inheritance
4. Polymorphism
5. Abstraction

1. Classes and Objects

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

Polymorphism allows objects of different classes to be treated as objects of a common


superclass. The main idea is that different objects can implement the same method, but
each can behave differently when that method is called.

 Method Overriding is a feature of polymorphism where a subclass provides its


own implementation of a method that is already defined in the superclass.

5. Abstraction

Abstraction refers to hiding the complex implementation details of an object and


exposing only the essential features. In Python, abstraction is typically implemented
using abstract classes and abstract methods.

 An abstract class cannot be instantiated directly, and it can contain abstract


methods that must be implemented by any subclass. This allows for a clear
separation of what an object can do and how it does i

9
Chapter 6
Application

Python is an incredibly versatile programming language with a wide range of


applications across various fields. Here are some of the key areas where Python is
commonly used:

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.

2. Data Science and Analytics


 Libraries: Python has become the go-to language for data science and analytics,
thanks to libraries like Pandas, NumPy, and SciPy. These libraries offer efficient
data structures and analysis tools for handling large datasets.
 Use Cases: Data cleaning, data analysis, statistical modeling, and data
visualization.

3. Machine Learning and Artificial Intelligence


 Libraries: Python's machine learning libraries, such as scikit-learn, TensorFlow,
and Keras, provide extensive tools for developing machine learning models and
deep learning applications.
 Use Cases: Predictive modeling, natural language processing, image recognition,
and recommendation systems.

4. Automation and Scripting


 Features: Python's simplicity and flexibility make it an excellent choice for
automation and scripting tasks. It can be used to automate repetitive tasks,
manage system operations, and interact with various software applications.
 Use Cases: Automating file operations, web scraping, batch processing, and
system monitoring.

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.

8. Financial Technology (FinTech)


 Libraries: Python is increasingly being used in the finance sector for tasks such
as risk management, trading algorithms, and financial analysis. Libraries like
QuantLib and pyalgotrade are specifically designed for financial applications.
 Use Cases: Algorithmic trading, financial modeling, risk analysis, and
investment strategies.

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.

10. Desktop GUI Applications


 Libraries: Python provides libraries like Tkinter, PyQt, and Kivy for building
graphical user interface (GUI) applications. These libraries offer tools for
creating cross-platform desktop applications.
 Use Cases: Developing desktop applications, tools, and utilities.

11
Chapter 7
Source code

12
Chapter 8
Project implementation

QR code generator using Python

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:

Lutz, M. (2013). Learning Python. O'Reilly Media.


Martelli, A. (2006). Python in a Nutshell. O'Reilly Media.

 WEBSITES:

Python Software Foundation. (n.d.). Python Official Documentation. Retrieved from


https://docs.python.org/
Real Python. (n.d.). Python Tutorials. Retrieved from https://realpython.com/
W3schhol.

15

You might also like