aman final last python
aman final last python
aman final last python
REPORT
ON
INDUSTRIAL TRAINING ON
(Session 2024-25)
This is to certify that the report of the training submitted is the outcome of the practical training done at
Intershala Trainings. in “Python Programming” is carried out by Aman Jat bearing RTU Roll No.:
23EJCAD023 under the guidance and supervision . for the award of Degree of Bachelor of Technology
(B.Tech.) in Department of Artificial Intelligence & Data Science from Jaipur Engineering College &
Research Centre, Jaipur (Raj.), India affiliated to Rajasthan Technical
University, Kota during the academic year 2024-2025.
To the best of my knowledge the report
• Embodies the work of the candidate.
• Has duly been completed.
• Fulfills the requirement of the ordinance relating to the bachelor of technology degree of the
Rajasthan technical University and
• Is up to the desired standard for the purpose of which is submitted.
The main objective of this training is to create awareness regarding the application of theories in the practical
world of Information Technology and to give a practical exposure of the real world to the student.
I, therefore, submit this project report of this training, which was undertaken at Internshala Trainings. It was
a good experience to have training in a Reputed Organization.
I feel great pleasure to present this project report. The report was prepared on the basis of the study carried
out regarding the Course of Python Programming .
ACKNOWLEDGEMENT
“Any serious and lasting achievement or success, one can never achieve without the help, guidance and co-
operation of so many people involved in the work.”
I would like to express deep gratitude to Dr Manju Vyas, Head of Department (Artificial Intelligence &
Data Science), Jaipur Engineering College & Research Centre, Jaipur (Rajasthan) without whose permission
the training would not be possible. I would also like to thank Mr. Rahul Guha, Assistant Professor, PTS
Coordinator, Department of AI&DS JECRC, Jaipur who recommended me for this training.
It is my pleasant duty to express my profound gratitude and extreme regards and thanks to Mr. Rahul Guha
who gave me an opportunity to take professional training in Internshala Training.
Last but not the least, I am grateful to My parents whose blessings and inspirations are always with me. I
am heartily thankful to those people who are involved directly or indirectly in this project for encouraging
me whenever I needed their help in spite of their busy schedule.
Aman Jat
23EJCAD023
COMPANY PROFILE
Internshala Trainings is a premier online learning platform that aims to equip students and professionals
with industry-relevant skills to bridge the gap between academic learning and professional demands.
Founded as an extension of Internshala, India’s largest internship and training platform, Internshala
Trainings focuses on providing practical, career-oriented education to learners from diverse backgrounds.
The platform offers a wide range of certified online courses in areas such as programming, data science,
business communication, digital marketing, web development, creative writing, and more. These trainings
are meticulously designed by industry experts, ensuring that learners acquire skills that are not only
theoretical but also applicable in real-world scenarios. The goal is to make learning accessible, affordable,
and effective for everyone.
Internshala Trainings also provides mentorship and doubt-resolution support, ensuring that students have
access to guidance whenever required. This personalized approach sets it apart from many other e-learning
platforms, making it especially appealing to first-time learners or individuals transitioning to new career
fields.
Affordability is another key strength of Internshala Trainings. With pricing that caters to students and early-
career professionals, the platform makes premium education accessible to a wide audience. .
Internshala Trainings has a significant focus on employability. Apart from providing skill-based education,
the platform offers resources to help learners build their resumes, prepare for interviews, and apply for
internships or jobs. The integration of training programs with Internshala's internship platform provides a
unique advantage, allowing learners to apply their skills in practical settings and gain valuable work
experience.
With a vision to empower young minds and contribute to the nation’s skill development goals, Internshala
Trainings continues to innovate and expand its offerings. By combining technology, expertise, and a learner-
centric approach, it has become a trusted name in online education,
Chapter Index
S. No. TITLE
Certificate
Declaration
Preface
Acknowledgement
Company Profile
1. Introduction
1.1 About Python
1.2 Scope
1.3 Features
2. The Design and Evolution of Python
3. Introduction To Python
3.1 Basic Structure
3.2 Data Types & Operators
4.2.1 Class
4.2.2 Objects
4.2.3 Inheritance
4.2.4 Polymorphism
Future Scope
References
CHAPTER 1
INTRODUCTION
1.2 SCOPE
1. Data Analyst
Data analysts are responsible for doing research with a large amount of data and
trying to find meaningful information and optimal solutions from the provided data.
As the scale of a company grows, there are a very large amount of data that a company
holds. There are many Python frameworks that a Python developer must be aware
of to get into the field of data analyst jobs such as Pandas, SciPy, etc.
2. Product Manager
Product manager professionals are responsible for the good execution of a product
campaign. Using the Python language, a professional can do research and marketing
activities for a specific product efficiently. They use the data collected from the
websites and users’ web activity to plan for the best possible execution of a product
campaign. This also helps to make a plan B for a product which helps the company in
a far better way.
3. Data Scientist
Data scientist job roles are very trending these days. Data Scientists are those
professionals who have knowledge of mathematics with Python development. A
data scientist does activities such as analyzing large sets of data and producing some
meaningful information, designing a model for the development of a company,
working with data structure parts, creating a machine learning model, etc.
Python web developers are those professionals whose work includes writing clean
and effective code for a website. Apart from writing, they are also responsible
for testing, debugging, and creating third-party web applications. Some of the
frameworks that a web developer must know for web development are
Django and Flask.
• Easy to use: Python uses English-like words and indentation instead of curly brackets.
• Dynamically typed: Python determines variable types at runtime, so programmers don't
need to declare them.
• High-level: Python is closer to human languages, so programmers don't need to worry
about underlying functionalities.
• Object-oriented: Python considers everything to be an object, but it also supports other
types of programming.
• Cross-platform: Python is compatible across platforms.
• Extensive libraries: Python has a wide array of modules and libraries to support other
computer languages.
• Strong community support: Python has a vibrant developer community.
• Fewer lines of code: Python requires fewer lines of code than other computer languages.
• Whitespace indentation: Python uses whitespace indentation to delimit blocks, rather
than curly brackets or keywords.
• Supports GUI: Python supports graphical user interfaces (GUIs).
• Open-source: Python is free and open-source.
CHAPTER 2
The Design and Evolution of Python
In the late 1980s, history was about to be written. It was that time when working on Python started.
Soon after that, Guido Van Rossum began doing its application-based work in December of 1989 at
Centrum Wiskunde & Informatica (CWI) which is situated in the Netherlands. It was started as a
hobby project because he was looking for an interesting project to keep him occupied during
Christmas.
The programming language in which Python is said to have succeeded is ABC Programming
Language, which had interfacing with the Amoeba Operating System and had the feature of
exception handling. He had already helped create ABC earlier in his career and had seen some issues
with ABC but liked most of the features. After that what he did was very clever. He had taken the
syntax of ABC, and some of its good features.
The language was finally released in 1991. When it was released, it used a lot fewer codes to express
the concepts, when we compare it with Java , C++ & C . Its design philosophy was quite good too.
Its main objective is to provide code readability and advanced developer productivity. When it was
released, it had more than enough capability to provide classes with inheritance, several core data
types of exception handling and functions..
The two of the most used versions has to Python 2.x & 3.x. There is a lot of competition between the
two and both of them seem to have quite a number of different fanbases. You can also refer to
mentioned below article to learn How you can download python latest version in your system.
For various purposes such as developing, scripting, generation, and software testing , this language
is utilized. Due to its elegance and simplicity, top technology organizations like Dropbox, Google,
Quora, Mozilla, Hewlett-Packard, Qualcomm, IBM, and Cisco have implemented Python.
Python has just turned 30 and just recently at pycon22(python conference) a new feature was
released by Anaconda foundation it’s known as pyscript with this now python can be written and run
in the browser like javascript which was previously not possible, but it still has that unknown charm
& X factor.
CHAPTER 3
INTRODUCTION TO PYTHON
3.1 Basic Structure
Python is a high-level, interpreted programming language known for its simple and readable syntax,
which makes it a popular choice for both beginners and experienced developers. The basic structure of a
Python program consists of several key components, including keywords, variables, expressions,
statements, functions, and indentation. Here's an overview of the Python basic structure:
1. Python Keywords
Keywords in Python are reserved words that have a specific meaning and are used to define the syntax of
the language. These cannot be used as identifiers (variable names, function names, etc.). Some common
Python keywords include `if`, `else`, `for`, `while`, `import`, `def`, `class`, and `try`.
2. Python Variables
A variable in Python is used to store data that can be referenced and manipulated later. Python is
dynamically typed, meaning you don’t need to declare the type of a variable explicitly. The type is inferred
from the value assigned to the variable. Example:
x = 10 # integer
name = "John" # string
is_active = True # boolean
3. Python Expressions
An expression in Python is a combination of values, variables, and operators that can be evaluated to
produce a result. For example:
result = 5 + 10 * 2 # result is 25
In this case, `5 + 10 * 2` is an expression that evaluates to `25`, following the order of operations
(PEMDAS).
4. Python Statements
A statement is a single line of code that performs an action. Python statements include
assignments, function calls, loops, and conditional statements. Some common types of
statements are:
Assignment Statement:
x=5
Conditional Statement:
if x > 0:
print("Positive number")else:
print("Non-positive number")
Looping Statement:
for i in range(5):print(i)
5. Functions in Python
Functions in Python are defined using the `def` keyword. A function is a block of code that
performs a specific task and can be called with parameters. Functions allow for code reusability.
Here's an example of a basic Python function:
def greet(name):
6. Indentation
Python uses indentation to define the structure of code blocks, such as loops, conditionals, and
functions. Unlike other programming languages that use braces `{}` to mark code blocks, Python
uses indentation (spaces or tabs) to indicate the level of nesting.
Example:
if x > 0:
Comments are used to explain the code and are ignored during execution. In Python,
comments start with the `#` symbol. There are two types of comments:Multi-line comments
(using triple quotes):
# This is a comment
Example:
name = input("Enter your name: ") # Taking input from the userprint("Hello, " + name + "!") #
These data types help to represent different kinds of information and perform operations on them.
10. Control Flow
Control flow statements help you control the execution of the program based on conditions or
loops. Pythonprovides:
sequences
• Class in Python
• Objects in Python
• Polymorphism in Python
• Encapsulation in Python
• Inheritance in Python
• Data Abstraction in Python
4.2.1 CLASS
A class is a collection of objects. A class contains the blueprints or the prototype from which the
objects are being created. It is a logical entity that contains some attributes and methods.
To understand the need for creating a class let’s consider an example, let’s say you wanted to
track the number of dogs that may have different attributes like breed, and age. If a list is used,
the first element could be the dog’s breed while the second element could represent its age. Let’s
suppose there are 100 different dogs, then how would you know which element is supposed to
be which? What if you wanted to add other properties to these dogs? This lacks organization
and it’s the exact need for classes.
class ClassName:
# Statement-1
.
.
.
# Statement-N
In the above example, we have created a class named Dog using the class keyword.
Python
# demonstrate defining
3
# a class
4
class Dog :
pass
4.2.2 OBJECTS
In object oriented programming Python, The object is an entity that has a state and behavior
associated with it. It may be any real-world object like a mouse, keyboard, chair, table, pen, etc.
Integers, strings, floating-point numbers, even arrays, and dictionaries, are all objects. More
specifically, any single integer or any single string is an object. The number 12 is an object, the
string “Hello, world” is an object, a list is an object that can hold other objects, and so on. You’ve
been using objects all along and may not even realize it.
Creating an Object
This will create an object named obj of the class Dog defined above. Before diving deep into objects and
classes let us understand some basic keywords that will be used while working with objects and classes.
Example :
obj = Dog()
Class methods must have an extra first parameter in the method definition. We do not give a
value for this parameter when we call the method, Python provides it
1. If we have a method that takes no arguments, then we still have to have one argument.
2. This is similar to this pointer in C++ and this reference in Java.
When we call a method of this object as myobject.method(arg1, arg2), this is automatically
converted by Python into MyClass.method(myobject, arg1, arg2) – this is all the special self is
about.
The __init__ method is similar to constructors in C++ and Java. It is run as soon as an object of a
class is instantiated. The method is useful to do any initialization you want to do with your
object. Now let us define a class and create some objects using the self and __init__ method.
4.2.3 INHERITANCE
In Python object oriented Programming, Inheritance is the capability of one class to derive or
inherit the properties from another class. The class that derives properties is called the derived
class or child class and the class from which the properties are being derived is called the base
class or parent class.
Types of inheritance:
1) Simple Inheritance - In simple inheritance, there is only one super class and one sub class. This
is the simplest of all the types of inheritance.
2) Multi-Level Inheritance - In multi-level inheritance, a sub class inherits a super class and once
again that sub class is inherited by another sub class and so on. At each level we have one super
class and one sub class
3) Multiple Inheritance - In multiple inheritance, multiple super classes will be inherited by a
single sub class. In multiple inheritance there might be ambiguity problem in sub class.
4) Hierarchical Inheritance - In hierarchical inheritance, a single super class is inherited by
multiple sub classes.
5) Hybrid Inheritance -This is a combination of any two or more of the types of inheritance
mention
4.2.4 POLYMORPHISM
In object oriented Programming Python, Polymorphism simply means having many forms. For
example, we need to determine if the given species of birds fly or not, using polymorphism we
can do this using a single function.
Example:
# Python program to demonstrate in-built polymorphic functions
A class is an example of encapsulation as it encapsulates all the data that is member functions,
variables.
It hides unnecessary code details from the user. Also, when we do not want to give out sensitive
parts of our code implementation and this is where data abstraction came.
Introduction
Pyttsx3 is a Python library designed for converting text to speech. Unlike many
modern text-to-speech solutions that rely on cloud -based services, pyttsx3 operates
offline, making it an ideal choice for applications that require reliability and privacy.
It works seamlessly across Windows, macOS, and Linux, and allows developers to
integrate speech synthesis into their Python programs with ease.
Key Features :-
1. Cross-Platform Compatibility
Pyttsx3 supports multiple operating systems without requiring significant
configuration changes. Whether you’re using Windows, macOS, or Linux, the library
adapts to the available speech synthesis engines:
- Windows: Uses the Microsoft Speech API (SAPI5).
- macOS: Utilizes the `nsspeechsynthesizer` system.
- Linux: Leverages `espeak` or other similar tools.
2. Offline Functionality
Since pyttsx3 operates locally on your device, it doesn’t require an internet
connection, ensuring that the library is always accessible and offering greater privacy
and security.
3. Customizable Speech
Developers can control various aspects of the generated speech:
- Rate: Adjusts the speed of speech delivery, allowing it to be sped up or slowed
down.
- Volume: Sets the loudness level, ranging from 0.0 (mute) to 1.0 (maximum).
- Voice Selection: Provides access to system-installed voices, enabling users to
choose male, female, or regional accents.
4. Simple and Intuitive Interface
Pyttsx3 is straightforward to use, even for beginners. It abstracts much of the
complexity of working with speech engines, enabling developers to focus on their
application logic.
```bash
pip install pyttsx3
```
Once installed, developers can initialize the engine and start converting text to speech
with just a few lines of code.
Configure properties
engine.setProperty('rate', 150) # Speed of speech
engine.setProperty('volume', 0.9) # Volume level (0.0 to 1.0)
Choose a voice
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[0].id)
# Use the first available voice
Speak text
engine.say("Welcome to the world of text-to-speech conversion!")
engine.runAndWait()
```
This script initializes the pyttsx3 engine, selects a voice, and speaks the specified text
aloud.
Advanced Features
1. Event Handling
Pyttsx3 supports event handling, enabling developers to trigger specific actions when
speech starts, ends, or encounters an error. This can be particularly useful in
interactive applications.
```python
def onStart(name):
print(f"Starting speech: {name}")
Limitations
Despite its advantages, pyttsx3 has a few limitations:
1. Dependence on System Voices: The quality and variety of voices depend on what is
installed on the user's system.
2. Lack of Naturalness: While functional, the synthesized voices may not sound as
natural as modern deep-learning-based solutions like Google Text-to-Speech or
Amazon Polly.
3. Compatibility Issues: On some platforms, configuring the library with non -default
speech engines might require additional setup.
Conclusion
Pyttsx3 is a robust and versatile library for text -to-speech conversion in Python. Its
offline functionality, customizability, and ease of use make it an excellent choice for
developers building applications in resource -constrained or privacy-sensitive
environments. While it may not match the naturalness of modern AI -driven solutions,
its reliability and simplicity have earned it a place in numerous Python -based projects.
Whether for creating interactive systems, assistive tools, or educational software,
pyttsx3 offers the tools necessary to bring text to life.
CONCLUSION
Python’s design emphasizes readability and simplicity, which lowers the barrier to entry for
newcomers and allows developers to express concepts in fewer lines of code than other languages
like C++ or Java. This user-friendly approach facilitates not only learning for beginners but also
enhances productivity for experienced developers. The intuitive syntax of Python encourages
clean and maintainable code, which is essential in collaborative environments and complex
projects. This focus on readability and simplicity has made Python a preferred choice for
educational institutes and coding boot camps, fostering a new generation of programmers who
are well-versed in its principles.
Versatility is another hallmark of Python that enhances its wide-ranging applicability. It supports
multiple programming paradigms, including procedural, object-oriented, and functional
programming. This flexibility means that developers can choose the best approach for their
specific problem domain. Additionally, Python finds its applications across numerous fields such
as web development, scientific computing, artificial intelligence, machine learning, data analysis,
automation, and even game development. The extensive array of libraries and frameworks, such
as Django for web development and TensorFlow for machine learning, further enriches its
ecosystem, enabling developers to build robust applications with decreased time and effort.
Furthermore, the strength of Python lies in its vibrant community and extensive resources. Python
boasts one of the largest and most active communities in the programming world, where
developers consistently share knowledge through forums, tutorials, and documentation. This
community-driven approach means that help is readily available, and continuous contributions
lead to the evolution of the language and its libraries. As a result, Python remains not only up-to-
date with technological advancements but also well-equipped to adapt to the dynamic needs of
the industry.
However, it is essential to recognize that Python is not without its challenges. While it excels in
aspects such as ease of use and versatility, its performance can lag behind that of compiled
languages like C or Java, especially in scenarios requiring extensive computational power or real-
time processing. Furthermore, some developers may find Python's dynamic typing a double-
edged sword, as it can lead
to runtime errors that might have been caught at compile-time in statically typed languages.
Despite these drawbacks, Python’s advantages often outweigh its limitations, making it an ideal
choice for many applications.
In conclusion, Python's prominence in the programming landscape is the result of its ease of use,
versatility, rich ecosystem, and strong community support. It has become a language of choice for
novices and experts alike, opening doors to numerous opportunities within the tech industry. As
we move forward, Python is poised to continue its trajectory of growth, adapting to emerging
technologies and trends while retaining the qualities that have made it so beloved. For anyone
looking to engage with the world of programming, Python offers a gentle introduction that fosters
creativity and innovation, ensuring that it will remain a foundational tool in the toolkit of
developers for years to come.
Web development
Data science
Scientific computing
• A "glue language": Python is often called a "glue language" because it integrates easily with
other languages and technologies.
• A top choice for data science: Python is a top choice for data science because it supports
both structured and unstructured data, and it has text processing capabilities.
• A flexible and reliable language: Python has flexible and reliable built-in functions and
libraries.
• Compatible with many operating systems: Python is compatible with all popular
operating systems and platforms.
• Supports function-oriented and structure-oriented programming: Python supports
both function-oriented and structure-oriented programming.
• Dynamic memory management: Python has features of dynamic memory management,
which can make use of computational resources efficiently.
FUTURE SCOPE
Python has a bright future in India, with increasing demand for Python developers across various
industries. The Indian IT industry has embraced Python due to its simplicity, versatility, and
extensive libraries and frameworks.
Python’s popularity in fields like data science, machine learning, and web development has created
a significant demand for skilled Python programmers in India.
Python’s ease of learning and its strong community support make it an attractive choice for
aspiring developers in India. Python training programs and bootcamps are widely available,
providing opportunities for individuals to upskill and enter the industry.
Furthermore, the Indian government has also recognized the importance of Python and its role in
digital transformation. Initiatives like the National Digital Literacy Mission and Skill India have
included Python programming in their curriculum, further boosting the adoption and future scope
of Python in India.
Growing demand: The demand for Python developers is expected to increase as more industries
adopt Python for data science, artificial intelligence, machine learning, and web development.
Emerging technologies: Python is a good choice for creating and implementing emerging
Career opportunities: Python opens the door to many career opportunities, including:
Data engineering
DevOps engineering
Game development
IoT development
Data science
References
Websites
➢ https://docs.python.org/3/
➢ : https://www.python.org/
➢ https://realpython.com/
➢ https://www.geeksforgeeks.org/python-programming-language/
➢ https://www.w3schools.com/python/
Books
➢ Summit Arora
Artificial Intelligence
➢ Chatgpt
➢ YouTube
➢ Google