SlideShare a Scribd company logo
Advance Python programming languages-Simple Easy learning
Amazon
Advance Python programming languages-Simple Easy learning
Advance Python programming languages-Simple Easy learning
Dropbox
Uber
Instagram
Youtube
WHAT IS PYTHON
9
• Python is a popular programming language.
• It was created by Guido van Rossum, and released in 1991.
• It is used for:
⮚web development (server-side).
⮚software development.
⮚mathematics.
⮚system scripting.
WHY PYTHON IS WIDELY USE?
10
• The python language is one of the most accessible programming
languages
• Python works on different platforms (Windows, Mac, Linux etc).
• Python has a simple syntax.
• Python is easy to code.
• Python runs on an interpreter system, meaning that code can be
executed as soon as it is written.
• Python is a object Oriented Programming Language
IDE – FOR PYTHON
11
• Jupyter IDE can be use for python coding.
• Jupyter is a free, open-source, interactive web tool that allows
editing and running files via a web browser.
• To launch a Jupyter notebook, open your terminal and navigate to
the directory where you would like to save your notebook.
• Then type the command Jupyter notebook and the program will
instantiate a local server at localhost:8888
ALGORITHM
The step by step procedure to solve an
identified problem is called an
algorithm.
ALGORITHM
• PRINT 1 TO 20
STEPS
STEP 1:Initialize X as 0
STEP 2:Increment X by 1
STEP 3:Print X
STEP 4:If X is less than 20 then go back to
step 2
ALGORITHM
FLOWCHART
• A flowchart is the graphical or pictorial
representation of an algorithm with the
help of different symbols, shapes and
arrows in order to demonstrate a
process or a program.
Flowchart Symbols:
CONNECTOR ARROW
PROCESS
/INSTRUCTION
TERMINAL
BOX
(START/END)
INPUT/OUTP
UT
DECISION
ALGORITHM
• Convert temperature from Fahrenheit to Celsius
PROGRAM
• A computer program is a collection of instructions
that perform a specific task when executed by a
computer.
• Examples- BASIC, Java, C, C++, Ruby, Python, Pascal etc.
Why Python for AI?
• Easy to learn, read and maintain
• A broad standard library
• Interactive mode
• Portability and compatibility
• Extendable
• Databases and scalable
BASIC PROGRAMMING SYNTAX
20
• Python syntax are very much simple and easy.
• Every programming language has its own set of rules that make
up its basic syntax.
• Hence ,it’s easy to code in Python.
For Example:
print(“ Learn from PodarPearl “)
• The syntax mention above is the basic syntax of python
programming language to print .
PYTHON KEYWORDS
21
• A keyword is a word having special meaning reserved by
programming language.
• We cannot use a keyword as a variable name, function name or
any other identifier.
Applications of Python
Integrated Development
Environment(IDE)
edit run browse debug
• Cross-platform programming language-Windows,
Mac OS, Linux.
• IDLE(GUI integrated) is the standard and popular
python development environment.
Python shell – used in 2 ways:
Interactive
mode
Allows us to
interact
with OS
Script
mode
Lets us
create/edit
source file
Python script/program
• Python statements written in a
particular sequence to solve a problem
is known as Python script/program.
Advance Python programming languages-Simple Easy learning
Introduction to tools for AI
ANACONDA 3
• Free open source distribution of python language
Data
science
OWN PACKAGES
ML
OWN SETTINGS
Predictive
analytics
Large scale
data
processing
DIFFERENT VIRTUAL
ENVIRONMENTS
Anaconda navigator
• Is a desktop GUI included in Anaconda that allows you
to launch applications and easily manage conda
packages, environments and channels without the
need to use command line commands.
What did we install?
• Anaconda prompt – Anaconda’s Command line
Interface(CLI) : is a Python CLI where we can create
different virtual environments and install packages
into them as per our need.
Jupyter Notebook
• Powerful tool for interactively developing and
presenting AI related projects.
• Possible to use different programming languages
• Python is commonly used language in it.
NOTEBOOK
It integrates codes and its output into a single document
that combines visualisations, narrative text,
mathematical equations.
Data science, analysis and science.
Working with Jupyter notebook
• KERNEL – provides programming
language support in Jupyter.
• Default kernel = IPython
conda.install jupyter nb_conda ipykernel
jupyter notebook
Program 1
Program 2
Program 3
Multi line statements
Statements can be extended to one or more line using -
Python statement and comments
• Instructions written in the source code
for execution are called statements.
• Different types - 1. Assignment statement
2.Conditional statement
3.Looping statement
Python comments - #
It doesn’t affect the outcome of the code.
LIST OF KEYWORDS
KEYWORDS & IDENTIFIERS
• Keywords – are the reserved words in python used by
python interpreter to recognize the structure of the
program.
• Identifier – is a name given to the entities like class,
variables, functions etc. It helps to differentiate one
entity from another.
• (Entity is a python library for automated object validation and
serialization)
IDENTIFIER- rules
VARIABLES
• A variable is a named location used to store
data in the memory.
• X = 42
• Y = 42
DATA TYPES
• All data values are represented by objects.
• Defines the operations possible on the variables and their
storage method.
NUMERIC
LIST
SET TUPLE
STRING
DICTIONARY
1.NUMERIC
• Stores numeric values
• Immutable
Integer type
11
Complex type
10+6j
Float type
6.24
2.LIST
• Store elements of different types
• Most versatile type in python
States = [‘Punjab’ , ‘Haryana’ , ‘Rajasthan’, 28]
print(States)
3.TUPLES
• It’s a sequence of immutable python objects.
• Faster than lists
• If a constant set of values is to be defined
which we must iterate – use tuple
• Cannot update, add, delete an element
Grade = ( ‘Einstein’ , ‘Newton’ , ‘Darwin’)
4.STRINGS
• Characters are enclosed in quotes- single
/double.
S = ‘Welcome to ISS’
D = “Strings”
5.SET
• Collection of items without any specific order.
• Every element is unique.
• Union, Intersection , Difference, Symmetric
difference
Set_1 = {7,8,9}
Set_2 = {3,6,6,7}
6. DICTIONARY
• Contains key value pairs enclosed within curly
braces and keys and values are separated by
‘:’
Dict = {‘Name’ : ‘Karthik’ , ‘Age’ : 20}
OPERATORS IN PYTHON
Arithmetic
operators
Identity
operators
Comparison
operators
Membership
operators
Assignment
operators
Logical
operators
COMPARISON OPERATOR
Operator Description Example
== If the values of two operands are equal, then
the condition becomes true.
(A==B) is not true
!= If the values of two operands are not equal,
then the condition becomes true.
(A!=B) is true
> If the value of left operand is greater than the
value of right operand, then the condition
becomes true.
(A>B) is true
< If the value of left operand is less than the
value of right operand, then the condition
becomes true.
(A<B) is not true
>= If the value of left operand is greater than or
equal to the value of right operand, then the
condition becomes true.
(A>=B) is true
<= If the value of left operand is less than or
equal to the value of right operand, then the
condition becomes true.
(A<=B) is not true
ASSIGNMENT OPERATOR
Operator Description Example
= Assigns values from right side operands to
left side operand
C =A+B
+= Add AND It adds right operand to the left operand
and assigns the result to left operand
C +=A
-= Subtract AND It subtract right operand to the left
operand and assigns the result to left
operand
C -=A
*= Multiply AND It multiplies right operand to the left
operand and assigns the result to left
operand
C*=A
/= Divide AND It divides left operand by right operand
and assigns the result to left operand
C/=A
%= Modulus AND It takes modulus using two operands and
assigns the result to left operand
C%=A
**= Exponent AND It performs exponential
(power)calculation on operators and
assigns value to the left operand
C**=A
OPERATOR EXAMPLE
Addition A+B = 300
Subtraction A-B = -100
Multiplication A*B = 20000
Division A/B = 0.5
Modulus B%A = 0
Exponent A**B = 100 to the power of
200
LOGICAL OPERATORS
OPERATOR DESCRIPTION EXAMPLE
and True ,if both the
operands are true
X and Y
or True, if either of the
operands is true
X or Y
Not True , if operand is false not X
MEMBERSHIP OPERATORS
OPERATOR DESCRIPTION EXAMPLE
in True , if
value/variable is
found in the
sequence
5 in x
not in True , if
value/variable is not
found in the
sequence
5 not in x
IDENTITY OPERATORS
OPERATOR DESCRIPTION EXAMPLE
is True, if the
operands are
identical
X is True
is not True , if the
operands are not
identical
X is not True
X Y X and Y
True True True
True False False
False True False
False False False
and
X Y X or Y
True True True
True False True
False True True
False False False
or
X not X
True False
False True
not
if elif else
If
X<Y
else
X=Y
elIf
X>Y Statements_a
Statements_c
Statements_b
Rest of the code
Start
False
False
True
True
Example :
PYTHON LOOPS
Infinite loop
Finite loop
Never
become
false
Become
false
While Loop
• The condition is checked and if it is true, control will move
inside the loop and execute the statements until the
condition becomes false.
• When we are unsure about the number of iterations
While Loop
For Loop
• The number of iterations is defined.
Nested Loops
• A loop within a loop.
• For loop inside a while loop or the other way round.
• For loop inside a for loop.
• While loop inside a while loop.
Nested Loops
Python Functions
Uses :
1. Code reusability
2.Code organization and documentation
3.Abstraction
4.Extensibility and Scalability
Ad

More Related Content

Similar to Advance Python programming languages-Simple Easy learning (20)

17575602.ppt
17575602.ppt17575602.ppt
17575602.ppt
TejaValmiki
 
Intro-to-Python-Part-1-first-part-edition.pdf
Intro-to-Python-Part-1-first-part-edition.pdfIntro-to-Python-Part-1-first-part-edition.pdf
Intro-to-Python-Part-1-first-part-edition.pdf
ssuser543728
 
1664611760basics-of-python-for begainer1 (3).pptx
1664611760basics-of-python-for begainer1 (3).pptx1664611760basics-of-python-for begainer1 (3).pptx
1664611760basics-of-python-for begainer1 (3).pptx
krsonupandey92
 
Python Basics by Akanksha Bali
Python Basics by Akanksha BaliPython Basics by Akanksha Bali
Python Basics by Akanksha Bali
Akanksha Bali
 
Welcome to python workshop
Welcome to python workshopWelcome to python workshop
Welcome to python workshop
Mukul Kirti Verma
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experienced
zynofustechnology
 
Python lab basics
Python lab basicsPython lab basics
Python lab basics
Abi_Kasi
 
Python functional programming
Python functional programmingPython functional programming
Python functional programming
Geison Goes
 
Introduction To Python.pptx
Introduction To Python.pptxIntroduction To Python.pptx
Introduction To Python.pptx
Anum Zehra
 
Lecture 1 .
Lecture 1                                     .Lecture 1                                     .
Lecture 1 .
SwatiHans10
 
ppt notes for python language variable data types
ppt notes for python language variable data typesppt notes for python language variable data types
ppt notes for python language variable data types
SukhpreetSingh519414
 
GE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_NotesGE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_Notes
Guru Nanak Technical Institutions
 
Python and Pytorch tutorial and walkthrough
Python and Pytorch tutorial and walkthroughPython and Pytorch tutorial and walkthrough
Python and Pytorch tutorial and walkthrough
gabriellekuruvilla
 
Python Demo.pptx
Python Demo.pptxPython Demo.pptx
Python Demo.pptx
ParveenShaik21
 
First Steps in Python Programming
First Steps in Python ProgrammingFirst Steps in Python Programming
First Steps in Python Programming
Dozie Agbo
 
pythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxpythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptx
RohitKumar639388
 
web programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Malothweb programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Maloth
Bhavsingh Maloth
 
Introduction-to-Python.pptx grade 9 ICT.
Introduction-to-Python.pptx grade 9 ICT.Introduction-to-Python.pptx grade 9 ICT.
Introduction-to-Python.pptx grade 9 ICT.
NeilIvanCasas1
 
Python indroduction
Python indroductionPython indroduction
Python indroduction
FEG
 
Intro-to-Python-Part-1-first-part-edition.pdf
Intro-to-Python-Part-1-first-part-edition.pdfIntro-to-Python-Part-1-first-part-edition.pdf
Intro-to-Python-Part-1-first-part-edition.pdf
ssuser543728
 
1664611760basics-of-python-for begainer1 (3).pptx
1664611760basics-of-python-for begainer1 (3).pptx1664611760basics-of-python-for begainer1 (3).pptx
1664611760basics-of-python-for begainer1 (3).pptx
krsonupandey92
 
Python Basics by Akanksha Bali
Python Basics by Akanksha BaliPython Basics by Akanksha Bali
Python Basics by Akanksha Bali
Akanksha Bali
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experienced
zynofustechnology
 
Python lab basics
Python lab basicsPython lab basics
Python lab basics
Abi_Kasi
 
Python functional programming
Python functional programmingPython functional programming
Python functional programming
Geison Goes
 
Introduction To Python.pptx
Introduction To Python.pptxIntroduction To Python.pptx
Introduction To Python.pptx
Anum Zehra
 
ppt notes for python language variable data types
ppt notes for python language variable data typesppt notes for python language variable data types
ppt notes for python language variable data types
SukhpreetSingh519414
 
Python and Pytorch tutorial and walkthrough
Python and Pytorch tutorial and walkthroughPython and Pytorch tutorial and walkthrough
Python and Pytorch tutorial and walkthrough
gabriellekuruvilla
 
First Steps in Python Programming
First Steps in Python ProgrammingFirst Steps in Python Programming
First Steps in Python Programming
Dozie Agbo
 
pythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxpythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptx
RohitKumar639388
 
web programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Malothweb programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Maloth
Bhavsingh Maloth
 
Introduction-to-Python.pptx grade 9 ICT.
Introduction-to-Python.pptx grade 9 ICT.Introduction-to-Python.pptx grade 9 ICT.
Introduction-to-Python.pptx grade 9 ICT.
NeilIvanCasas1
 
Python indroduction
Python indroductionPython indroduction
Python indroduction
FEG
 

More from sherinjoyson (7)

Artificial Intelligence career oppourtunities
Artificial Intelligence  career oppourtunitiesArtificial Intelligence  career oppourtunities
Artificial Intelligence career oppourtunities
sherinjoyson
 
A computer network links several computers. Office networks allow people to w...
A computer network links several computers. Office networks allow people to w...A computer network links several computers. Office networks allow people to w...
A computer network links several computers. Office networks allow people to w...
sherinjoyson
 
For students who finish early, provide them with additional resources (articl...
For students who finish early, provide them with additional resources (articl...For students who finish early, provide them with additional resources (articl...
For students who finish early, provide them with additional resources (articl...
sherinjoyson
 
Logistic-regression.pptx
Logistic-regression.pptxLogistic-regression.pptx
Logistic-regression.pptx
sherinjoyson
 
Types of Computer.pptx
Types of Computer.pptxTypes of Computer.pptx
Types of Computer.pptx
sherinjoyson
 
EARLY HUMANS TO DIGITIZATION.pptx
EARLY HUMANS TO DIGITIZATION.pptxEARLY HUMANS TO DIGITIZATION.pptx
EARLY HUMANS TO DIGITIZATION.pptx
sherinjoyson
 
friday class Jan.pptx
friday class Jan.pptxfriday class Jan.pptx
friday class Jan.pptx
sherinjoyson
 
Artificial Intelligence career oppourtunities
Artificial Intelligence  career oppourtunitiesArtificial Intelligence  career oppourtunities
Artificial Intelligence career oppourtunities
sherinjoyson
 
A computer network links several computers. Office networks allow people to w...
A computer network links several computers. Office networks allow people to w...A computer network links several computers. Office networks allow people to w...
A computer network links several computers. Office networks allow people to w...
sherinjoyson
 
For students who finish early, provide them with additional resources (articl...
For students who finish early, provide them with additional resources (articl...For students who finish early, provide them with additional resources (articl...
For students who finish early, provide them with additional resources (articl...
sherinjoyson
 
Logistic-regression.pptx
Logistic-regression.pptxLogistic-regression.pptx
Logistic-regression.pptx
sherinjoyson
 
Types of Computer.pptx
Types of Computer.pptxTypes of Computer.pptx
Types of Computer.pptx
sherinjoyson
 
EARLY HUMANS TO DIGITIZATION.pptx
EARLY HUMANS TO DIGITIZATION.pptxEARLY HUMANS TO DIGITIZATION.pptx
EARLY HUMANS TO DIGITIZATION.pptx
sherinjoyson
 
friday class Jan.pptx
friday class Jan.pptxfriday class Jan.pptx
friday class Jan.pptx
sherinjoyson
 
Ad

Recently uploaded (20)

Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.pptJust-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
ssuser5f8f49
 
Principles of information security Chapter 5.ppt
Principles of information security Chapter 5.pptPrinciples of information security Chapter 5.ppt
Principles of information security Chapter 5.ppt
EstherBaguma
 
50_questions_full.pptxdddddddddddddddddd
50_questions_full.pptxdddddddddddddddddd50_questions_full.pptxdddddddddddddddddd
50_questions_full.pptxdddddddddddddddddd
emir73065
 
Customer Segmentation using K-Means clustering
Customer Segmentation using K-Means clusteringCustomer Segmentation using K-Means clustering
Customer Segmentation using K-Means clustering
Ingrid Nyakerario
 
Process Mining at AE - Key success factors
Process Mining at AE - Key success factorsProcess Mining at AE - Key success factors
Process Mining at AE - Key success factors
Process mining Evangelist
 
AWS-AIML-PRESENTATION RELATED TO DATA SCIENCE TO DATA
AWS-AIML-PRESENTATION RELATED TO DATA SCIENCE TO DATAAWS-AIML-PRESENTATION RELATED TO DATA SCIENCE TO DATA
AWS-AIML-PRESENTATION RELATED TO DATA SCIENCE TO DATA
SnehaBoja
 
Process Mining and Official Statistics - CBS
Process Mining and Official Statistics - CBSProcess Mining and Official Statistics - CBS
Process Mining and Official Statistics - CBS
Process mining Evangelist
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
Deloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining ProjectsDeloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining Projects
Process mining Evangelist
 
4. Multivariable statistics_Using Stata_2025.pdf
4. Multivariable statistics_Using Stata_2025.pdf4. Multivariable statistics_Using Stata_2025.pdf
4. Multivariable statistics_Using Stata_2025.pdf
axonneurologycenter1
 
Process Mining and Data Science in the Financial Industry
Process Mining and Data Science in the Financial IndustryProcess Mining and Data Science in the Financial Industry
Process Mining and Data Science in the Financial Industry
Process mining Evangelist
 
2024-Media-Literacy-Index-Of-Ukrainians-ENG-SHORT.pdf
2024-Media-Literacy-Index-Of-Ukrainians-ENG-SHORT.pdf2024-Media-Literacy-Index-Of-Ukrainians-ENG-SHORT.pdf
2024-Media-Literacy-Index-Of-Ukrainians-ENG-SHORT.pdf
OlhaTatokhina1
 
indonesia-gen-z-report-2024 Gen Z (born between 1997 and 2012) is currently t...
indonesia-gen-z-report-2024 Gen Z (born between 1997 and 2012) is currently t...indonesia-gen-z-report-2024 Gen Z (born between 1997 and 2012) is currently t...
indonesia-gen-z-report-2024 Gen Z (born between 1997 and 2012) is currently t...
disnakertransjabarda
 
717239550-Hotel-Management-Ppt-Final.pptx
717239550-Hotel-Management-Ppt-Final.pptx717239550-Hotel-Management-Ppt-Final.pptx
717239550-Hotel-Management-Ppt-Final.pptx
dharmendrasingh31102
 
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
James Francis Paradigm Asset Management
 
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docxMASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
santosh162
 
定制(意大利Rimini毕业证)布鲁诺马代尔纳嘉雷迪米音乐学院学历认证
定制(意大利Rimini毕业证)布鲁诺马代尔纳嘉雷迪米音乐学院学历认证定制(意大利Rimini毕业证)布鲁诺马代尔纳嘉雷迪米音乐学院学历认证
定制(意大利Rimini毕业证)布鲁诺马代尔纳嘉雷迪米音乐学院学历认证
Taqyea
 
Modern_Distribution_Presentation.pptx Aa
Modern_Distribution_Presentation.pptx AaModern_Distribution_Presentation.pptx Aa
Modern_Distribution_Presentation.pptx Aa
MuhammadAwaisKamboh
 
chapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptxchapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptx
justinebandajbn
 
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.pptJust-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
ssuser5f8f49
 
Principles of information security Chapter 5.ppt
Principles of information security Chapter 5.pptPrinciples of information security Chapter 5.ppt
Principles of information security Chapter 5.ppt
EstherBaguma
 
50_questions_full.pptxdddddddddddddddddd
50_questions_full.pptxdddddddddddddddddd50_questions_full.pptxdddddddddddddddddd
50_questions_full.pptxdddddddddddddddddd
emir73065
 
Customer Segmentation using K-Means clustering
Customer Segmentation using K-Means clusteringCustomer Segmentation using K-Means clustering
Customer Segmentation using K-Means clustering
Ingrid Nyakerario
 
AWS-AIML-PRESENTATION RELATED TO DATA SCIENCE TO DATA
AWS-AIML-PRESENTATION RELATED TO DATA SCIENCE TO DATAAWS-AIML-PRESENTATION RELATED TO DATA SCIENCE TO DATA
AWS-AIML-PRESENTATION RELATED TO DATA SCIENCE TO DATA
SnehaBoja
 
Process Mining and Official Statistics - CBS
Process Mining and Official Statistics - CBSProcess Mining and Official Statistics - CBS
Process Mining and Official Statistics - CBS
Process mining Evangelist
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
Deloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining ProjectsDeloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining Projects
Process mining Evangelist
 
4. Multivariable statistics_Using Stata_2025.pdf
4. Multivariable statistics_Using Stata_2025.pdf4. Multivariable statistics_Using Stata_2025.pdf
4. Multivariable statistics_Using Stata_2025.pdf
axonneurologycenter1
 
Process Mining and Data Science in the Financial Industry
Process Mining and Data Science in the Financial IndustryProcess Mining and Data Science in the Financial Industry
Process Mining and Data Science in the Financial Industry
Process mining Evangelist
 
2024-Media-Literacy-Index-Of-Ukrainians-ENG-SHORT.pdf
2024-Media-Literacy-Index-Of-Ukrainians-ENG-SHORT.pdf2024-Media-Literacy-Index-Of-Ukrainians-ENG-SHORT.pdf
2024-Media-Literacy-Index-Of-Ukrainians-ENG-SHORT.pdf
OlhaTatokhina1
 
indonesia-gen-z-report-2024 Gen Z (born between 1997 and 2012) is currently t...
indonesia-gen-z-report-2024 Gen Z (born between 1997 and 2012) is currently t...indonesia-gen-z-report-2024 Gen Z (born between 1997 and 2012) is currently t...
indonesia-gen-z-report-2024 Gen Z (born between 1997 and 2012) is currently t...
disnakertransjabarda
 
717239550-Hotel-Management-Ppt-Final.pptx
717239550-Hotel-Management-Ppt-Final.pptx717239550-Hotel-Management-Ppt-Final.pptx
717239550-Hotel-Management-Ppt-Final.pptx
dharmendrasingh31102
 
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
James Francis Paradigm Asset Management
 
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docxMASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
santosh162
 
定制(意大利Rimini毕业证)布鲁诺马代尔纳嘉雷迪米音乐学院学历认证
定制(意大利Rimini毕业证)布鲁诺马代尔纳嘉雷迪米音乐学院学历认证定制(意大利Rimini毕业证)布鲁诺马代尔纳嘉雷迪米音乐学院学历认证
定制(意大利Rimini毕业证)布鲁诺马代尔纳嘉雷迪米音乐学院学历认证
Taqyea
 
Modern_Distribution_Presentation.pptx Aa
Modern_Distribution_Presentation.pptx AaModern_Distribution_Presentation.pptx Aa
Modern_Distribution_Presentation.pptx Aa
MuhammadAwaisKamboh
 
chapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptxchapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptx
justinebandajbn
 
Ad

Advance Python programming languages-Simple Easy learning

  • 9. WHAT IS PYTHON 9 • Python is a popular programming language. • It was created by Guido van Rossum, and released in 1991. • It is used for: ⮚web development (server-side). ⮚software development. ⮚mathematics. ⮚system scripting.
  • 10. WHY PYTHON IS WIDELY USE? 10 • The python language is one of the most accessible programming languages • Python works on different platforms (Windows, Mac, Linux etc). • Python has a simple syntax. • Python is easy to code. • Python runs on an interpreter system, meaning that code can be executed as soon as it is written. • Python is a object Oriented Programming Language
  • 11. IDE – FOR PYTHON 11 • Jupyter IDE can be use for python coding. • Jupyter is a free, open-source, interactive web tool that allows editing and running files via a web browser. • To launch a Jupyter notebook, open your terminal and navigate to the directory where you would like to save your notebook. • Then type the command Jupyter notebook and the program will instantiate a local server at localhost:8888
  • 12. ALGORITHM The step by step procedure to solve an identified problem is called an algorithm.
  • 13. ALGORITHM • PRINT 1 TO 20 STEPS STEP 1:Initialize X as 0 STEP 2:Increment X by 1 STEP 3:Print X STEP 4:If X is less than 20 then go back to step 2
  • 15. FLOWCHART • A flowchart is the graphical or pictorial representation of an algorithm with the help of different symbols, shapes and arrows in order to demonstrate a process or a program.
  • 17. ALGORITHM • Convert temperature from Fahrenheit to Celsius
  • 18. PROGRAM • A computer program is a collection of instructions that perform a specific task when executed by a computer. • Examples- BASIC, Java, C, C++, Ruby, Python, Pascal etc.
  • 19. Why Python for AI? • Easy to learn, read and maintain • A broad standard library • Interactive mode • Portability and compatibility • Extendable • Databases and scalable
  • 20. BASIC PROGRAMMING SYNTAX 20 • Python syntax are very much simple and easy. • Every programming language has its own set of rules that make up its basic syntax. • Hence ,it’s easy to code in Python. For Example: print(“ Learn from PodarPearl “) • The syntax mention above is the basic syntax of python programming language to print .
  • 21. PYTHON KEYWORDS 21 • A keyword is a word having special meaning reserved by programming language. • We cannot use a keyword as a variable name, function name or any other identifier.
  • 23. Integrated Development Environment(IDE) edit run browse debug • Cross-platform programming language-Windows, Mac OS, Linux. • IDLE(GUI integrated) is the standard and popular python development environment.
  • 24. Python shell – used in 2 ways: Interactive mode Allows us to interact with OS Script mode Lets us create/edit source file
  • 25. Python script/program • Python statements written in a particular sequence to solve a problem is known as Python script/program.
  • 27. Introduction to tools for AI ANACONDA 3 • Free open source distribution of python language Data science OWN PACKAGES ML OWN SETTINGS Predictive analytics Large scale data processing DIFFERENT VIRTUAL ENVIRONMENTS
  • 28. Anaconda navigator • Is a desktop GUI included in Anaconda that allows you to launch applications and easily manage conda packages, environments and channels without the need to use command line commands. What did we install? • Anaconda prompt – Anaconda’s Command line Interface(CLI) : is a Python CLI where we can create different virtual environments and install packages into them as per our need.
  • 29. Jupyter Notebook • Powerful tool for interactively developing and presenting AI related projects. • Possible to use different programming languages • Python is commonly used language in it. NOTEBOOK It integrates codes and its output into a single document that combines visualisations, narrative text, mathematical equations. Data science, analysis and science.
  • 30. Working with Jupyter notebook • KERNEL – provides programming language support in Jupyter. • Default kernel = IPython conda.install jupyter nb_conda ipykernel jupyter notebook
  • 34. Multi line statements Statements can be extended to one or more line using -
  • 35. Python statement and comments • Instructions written in the source code for execution are called statements. • Different types - 1. Assignment statement 2.Conditional statement 3.Looping statement
  • 36. Python comments - # It doesn’t affect the outcome of the code.
  • 38. KEYWORDS & IDENTIFIERS • Keywords – are the reserved words in python used by python interpreter to recognize the structure of the program. • Identifier – is a name given to the entities like class, variables, functions etc. It helps to differentiate one entity from another. • (Entity is a python library for automated object validation and serialization)
  • 40. VARIABLES • A variable is a named location used to store data in the memory. • X = 42 • Y = 42
  • 41. DATA TYPES • All data values are represented by objects. • Defines the operations possible on the variables and their storage method. NUMERIC LIST SET TUPLE STRING DICTIONARY
  • 42. 1.NUMERIC • Stores numeric values • Immutable Integer type 11 Complex type 10+6j Float type 6.24
  • 43. 2.LIST • Store elements of different types • Most versatile type in python States = [‘Punjab’ , ‘Haryana’ , ‘Rajasthan’, 28] print(States)
  • 44. 3.TUPLES • It’s a sequence of immutable python objects. • Faster than lists • If a constant set of values is to be defined which we must iterate – use tuple • Cannot update, add, delete an element Grade = ( ‘Einstein’ , ‘Newton’ , ‘Darwin’)
  • 45. 4.STRINGS • Characters are enclosed in quotes- single /double. S = ‘Welcome to ISS’ D = “Strings”
  • 46. 5.SET • Collection of items without any specific order. • Every element is unique. • Union, Intersection , Difference, Symmetric difference Set_1 = {7,8,9} Set_2 = {3,6,6,7}
  • 47. 6. DICTIONARY • Contains key value pairs enclosed within curly braces and keys and values are separated by ‘:’ Dict = {‘Name’ : ‘Karthik’ , ‘Age’ : 20}
  • 49. COMPARISON OPERATOR Operator Description Example == If the values of two operands are equal, then the condition becomes true. (A==B) is not true != If the values of two operands are not equal, then the condition becomes true. (A!=B) is true > If the value of left operand is greater than the value of right operand, then the condition becomes true. (A>B) is true < If the value of left operand is less than the value of right operand, then the condition becomes true. (A<B) is not true >= If the value of left operand is greater than or equal to the value of right operand, then the condition becomes true. (A>=B) is true <= If the value of left operand is less than or equal to the value of right operand, then the condition becomes true. (A<=B) is not true
  • 50. ASSIGNMENT OPERATOR Operator Description Example = Assigns values from right side operands to left side operand C =A+B += Add AND It adds right operand to the left operand and assigns the result to left operand C +=A -= Subtract AND It subtract right operand to the left operand and assigns the result to left operand C -=A *= Multiply AND It multiplies right operand to the left operand and assigns the result to left operand C*=A /= Divide AND It divides left operand by right operand and assigns the result to left operand C/=A %= Modulus AND It takes modulus using two operands and assigns the result to left operand C%=A **= Exponent AND It performs exponential (power)calculation on operators and assigns value to the left operand C**=A
  • 51. OPERATOR EXAMPLE Addition A+B = 300 Subtraction A-B = -100 Multiplication A*B = 20000 Division A/B = 0.5 Modulus B%A = 0 Exponent A**B = 100 to the power of 200
  • 52. LOGICAL OPERATORS OPERATOR DESCRIPTION EXAMPLE and True ,if both the operands are true X and Y or True, if either of the operands is true X or Y Not True , if operand is false not X
  • 53. MEMBERSHIP OPERATORS OPERATOR DESCRIPTION EXAMPLE in True , if value/variable is found in the sequence 5 in x not in True , if value/variable is not found in the sequence 5 not in x
  • 54. IDENTITY OPERATORS OPERATOR DESCRIPTION EXAMPLE is True, if the operands are identical X is True is not True , if the operands are not identical X is not True
  • 55. X Y X and Y True True True True False False False True False False False False and
  • 56. X Y X or Y True True True True False True False True True False False False or
  • 57. X not X True False False True not
  • 58. if elif else If X<Y else X=Y elIf X>Y Statements_a Statements_c Statements_b Rest of the code Start False False True True
  • 60. PYTHON LOOPS Infinite loop Finite loop Never become false Become false
  • 61. While Loop • The condition is checked and if it is true, control will move inside the loop and execute the statements until the condition becomes false. • When we are unsure about the number of iterations
  • 63. For Loop • The number of iterations is defined.
  • 64. Nested Loops • A loop within a loop. • For loop inside a while loop or the other way round. • For loop inside a for loop. • While loop inside a while loop.
  • 66. Python Functions Uses : 1. Code reusability 2.Code organization and documentation 3.Abstraction 4.Extensibility and Scalability