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

Python Intoduction

Uploaded by

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

Python Intoduction

Uploaded by

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

Dharmendra Singh

Dharmendra Singh
Python is a general-purpose
interpreted, interactive,
object-oriented, and high-level programming
language. It was created by Guido van Rossum
during 1985- 1990. Like Perl, Python source
code is also available under the GNU General
Public License (GPL).

Dharmendra Singh
 Python is a MUST for students and working professionals to
become a great Software Engineer specially when they are
working in Web Development Domain. I will list down some of
the key advantages of learning Python:
 Python is Interpreted − Python is processed at runtime by the
interpreter. You do not need to compile your program before
executing it. This is similar to PERL and PHP.
 Python is Interactive − You can actually sit at a Python prompt
and interact with the interpreter directly to write your programs.
 Python is Object-Oriented − Python supports Object-Oriented
style or technique of programming that encapsulates code within
objects.
 Python is a Beginner's Language − Python is a great language
for the beginner-level programmers and supports the
development of a wide range of applications from simple text
processing to WWW browsers to games.
Dharmendra Singh
 It supports functional and structured programming
methods as well as OOP.
 It can be used as a scripting language or can be
compiled to byte-code for building large applications.
 It provides very high-level dynamic data types and
supports dynamic type checking.
 It supports automatic garbage collection.
 It can be easily integrated with C, C++, COM,
ActiveX, CORBA, and Java.

Dharmendra Singh
 Easy-to-learn − Python has few keywords, simple
structure, and a clearly defined syntax. This allows the
student to pick up the language quickly.
 Easy-to-read − Python code is more clearly defined and
visible to the eyes.
 Easy-to-maintain − Python's source code is fairly easy-
to-maintain.
 A broad standard library − Python's bulk of the library
is very portable and cross-platform compatible on UNIX,
Windows, and Macintosh.
 Interactive Mode − Python has support for an interactive
mode which allows interactive testing and debugging of
snippets of code.
 Portable − Python can run on a wide variety of hardware
platforms and has the same interface on all platforms.

Dharmendra Singh
 Extendable − You can add low-level modules to the
Python interpreter. These modules enable
programmers to add to or customize their tools to be
more efficient.
 Databases − Python provides interfaces to all major
commercial databases.
 GUI Programming − Python supports GUI
applications that can be created and ported to many
system calls, libraries and windows systems, such as
Windows MFC, Macintosh, and the X Window
system of Unix.
 Scalable − Python provides a better structure and
support for large programs than shell scripting.

Dharmendra Singh
 https://www.python. org/

 Windows Installation
 Here are the steps to install Python on Windows machine.
 Open a Web browser and go to https://www.python.org/downloads/.
 Follow the link for the Windows installer python-XYZ.msi file where XYZ
is the version you need to install.
 To use this installer python-XYZ.msi, the Windows system must support
Microsoft Installer 2.0. Save the installer file to your local machine and
then run it to find out if your machine supports MSI.
 Run the downloaded file. This brings up the Python install wizard, which is
really easy to use. Just accept the default settings, wait until the install is
finished, and you are done.

Dharmendra Singh
Dharmendra Singh
Dharmendra Singh
Dharmendra Singh
Dharmendra Singh
Dharmendra Singh
Dharmendra Singh
Dharmendra Singh
Dharmendra Singh
Dharmendra Singh
 Python has wide range of libraries and frameworks
widely used in various fields such as machine
learning, artificial intelligence, web applications, etc.
We define some popular frameworks and libraries of
Python as follows.
 Web development (Server-side) - Django Flask,
Pyramid, CherryPy
 GUIs based applications - Tk, PyGTK, PyQt, PyJs,
etc.
 Machine Learning - TensorFlow, PyTorch, Scikit-
learn, Matplotlib, Scipy, etc.
 Mathematics - Numpy, Pandas, etc.

Dharmendra Singh
print("Welcome to python world")
a = 10
# Two objects are passed in print() function
print("a =", a)
b=a
# Three objects are passed in print function
print('a =', a, '= b')

Dharmendra Singh
 As AI and ML are being applied across various
channels and industries, big corporations invest in these
fields, and the demand for experts in ML and AI grows
accordingly. Jean Francois Puget, from IBM’s machine
learning department, expressed his opinion that Python
is the most popular language for AI and ML and based
it on a trend search results on indeed.com

Dharmendra Singh
 1. A great library ecosystem
 Scikit-learn for handling basic ML algorithms like clustering, linear
and logistic regressions, regression, classification, and others.
 Pandas for high-level data structures and analysis. It allows merging
and filtering of data, as well as gathering it from other external sources
like Excel, for instance.
 Keras for deep learning. It allows fast calculations and prototyping, as
it uses the GPU in addition to the CPU of the computer.
 TensorFlow for working with deep learning by setting up, training, and
utilizing artificial neural networks with massive datasets.
 Matplotlib for creating 2D plots, histograms, charts, and other forms of
visualization.
 NLTK for working with computational linguistics, natural language
recognition, and processing.
 Scikit-image for image processing.
 PyBrain for neural networks, unsupervised and reinforcement learning.
 Caffe for deep learning that allows switching between the CPU and the
GPU and processing 60+ mln images a day using a single NVIDIA
K40 GPU.
 StatsModels for statistical algorithms and data exploration.

Dharmendra Singh
 The low entry barrier allows more data scientists to
quickly pick up Python and start using it for AI
development without wasting too much effort on
learning the language.
 Python programming language resembles the everyday
English language, and that makes the process of
learning easier. Its simple syntax allows you to
comfortably work with complex systems, ensuring
сlear relations between the system elements.

Dharmendra Singh
 Python for machine learning is a great choice, as this
language is very flexible:
 It offers an option to choose either to use OOPs or
scripting.
 There’s also no need to recompile the source code,
developers can implement any changes and quickly see
the results.
 Programmers can combine Python and other languages
to reach their goals.

Dharmendra Singh
 Python is not only comfortable to use and easy to learn
but also very versatile. What we mean is that Python
for machine learning development can run on any
platform including Windows, MacOS, Linux, Unix, and
twenty-one others. To transfer the process from one
platform to another, developers need to implement
several small-scale changes and modify some lines of
code to create an executable form of code for the
chosen platform. Developers can use packages
like PyInstaller to prepare their code for running on
different platforms.

Dharmendra Singh
 Python is very easy to read so every Python
developer can understand the code of their peers and
change, copy or share it. There’s no confusion, errors or
conflicting paradigms, and this leads to more a efficient
exchange of algorithms, ideas, and tools between AI
and ML professionals.

Dharmendra Singh
 Libraries like Matplotlib allow data scientists to build
charts, histograms, and plots for better data
comprehension, effective presentation, and
visualization. Different application programming
interfaces also simplify the visualization process and
make it easier to create clear reports.

Dharmendra Singh
 A lot of Python documentation is available
online as well as in Python communities and
forums, where programmers and machine
learning developers discuss errors, solve
problems, and help each other out.

Dharmendra Singh
 As a result of the advantages discussed above,
Python is becoming more and more popular
among data scientists. According to
StackOverflow, the popularity of Python is
predicted to grow until 2020, at least.

Dharmendra Singh

You might also like