SlideShare a Scribd company logo
INTRODUCTION
TO PYTHON
02
General-purpose
programming language.
CONTENT OF THIS COURSE
Here’s what you’ll find in this Course :
● Introduction to python general-purpose programming language.
● What Python Used for.
● Companies uses Python.
● Setting Up the Environment.
● Start Python Programming
Introduction to AI with ML
What Python is?
Python is a popular general-purpose programming language.
It was created by Guido van Rossum in 1980, and released in 1991.
It is used for:
 Web development (server-side).
 Artificial Intelligence .
 Software Development.
Introduction to AI with ML
General Vs Specific Purpose
Introduction to AI with ML
What Python is?
Python is a popular general-purpose programming language.
It was created by Guido van Rossum in 1980, and released in 1991.
It is used for:
 Web development (server-side).
 Artificial Intelligence .
 Software Development.
Introduction to AI with ML
Top Companies using python
Introduction to AI with ML
What make it so powerful for that is
because it has a many framework!
A framework is a set structure in which tasks are performed or completed.
Typically, a framework refers to an often layered structure that indicates what
kind of programs can or should be built and how they would connect to each
other.
Introduction to AI with ML
Setting up the Enviroment
Introduction to AI with ML
An integrated development environment (IDE)
Introduction to AI with ML
Why it’s better to use an IDE than
Running code in Note pad with python
Compiler
Introduction to AI with ML
Functions
Introduction to AI with ML
WHAT DOES A COMPUTER DO?
 performs calculations a billion calculations per second! two
operations in same time light travels 1 foot.
 Remembers results
100s of gigabytes of storage!
typical machine could hold 1.5M books of standard size
-Linus Torvalds
“Talk is cheap.
Show me the code.”
Introduction to AI with ML
02:Variables
Introduction to AI with ML
Variables
You can think of variable as a little box or a container to store
data in the memory of the computer and later retrieve the data
using the variable “name”
Programmers get to choose the names of the variables
You can change the contents of a variable in a later statement
Introduction to AI with ML
02:Variables
Introduction to AI with ML
02:Variables
Introduction to AI with ML
Arian 5 the worst bug disaster
On June 4th, 1996, the very first Ariane 5 rocket ignited its engines and began
speeding away from the coast of French Guiana. 37 seconds later, the rocket flipped
90 degrees in the wrong direction, and less than two seconds later, aerodynamic
forces ripped the boosters apart from the main stage at a height of 4km.
Introduction to AI with ML
Introduction to AI with ML
01:Arithmetic Operations
Operation
Operator
Addition
+
Subtraction
-
Multiplication
*
Division
/
Power
**
Remainder
%
Introduction to AI with ML
03:User Input
Python has an input function which lets you ask a user for some
text input.
Introduction to AI with ML
04:Comments in Python
Comments in Python begin with a hash mark ( # ) and whitespace character
and continue to the end of the line. Because comments do not execute,
when you run a program you will not see any indication of
the comment there. Comments are in the source code for humans to read,
not for computers to execute.
Introduction to AI with ML
05:Conditions
Python uses boolean logic to evaluate conditions. The boolean values True and
False are returned when an expression is compared or evaluated.
Introduction to AI with ML
Introduction to AI with ML
Introduction to AI with ML
06:Loop
Python has two primitive loop commands:
 while loops
 for loops
Introduction to AI with ML
07:Data Structures
• Every child knows that one can – at least beyond a certain number – find things much easier
if one keeps order. We humans understand by keeping things in order that we separate the
things that we possess into categories and assign fixed locations to these categories that we
can remember.
• We may simply throw socks into a drawer, but for other things like DVDs it is best to sort
them beyond a certain number so that we can quickly find every DVD.
Introduction to AI with ML
Introduction to AI with ML
07:Data Structures-String
What If I told u there is no Variable called string
Introduction to AI with ML
07:Data Structures-String
A L M E N T O R
Introduction to AI with ML
07:Data Structures
There are four collection data types in the Python programming language:
List is a collection which is ordered and changeable. Allows duplicate members.
Tuple is a collection which is ordered and unchangeable. Allows duplicate
members.
Set is a collection which is unordered and unindexed. No duplicate members.
Dictionary is a collection which is ordered* and changeable. No duplicate
members.
Introduction to AI with ML
07:Data Structures-List
 Lists are used to store multiple items in a single variable.
 Lists are one of 4 built-in data types in Python used to store collections
of data, the other 3 are Tuple, Set, and Dictionary, all with different
qualities and usage.
 The list is changeable, meaning that we can change, add, and remove
items in a list after it has been created.
 Lists are created using square brackets:
Introduction to AI with ML
07:Data Structures-Tuples
 Tuples are used to store multiple items in a single variable.
 Tuple is one of 4 built-in data types in Python used to store collections
of data, the other 3 are List, Set, and Dictionary, all with different
qualities and usage.
 A tuple is a collection which is ordered and unchangeable.
 Tuples are written with round brackets.
Introduction to AI with ML
07:Data Structures-Sets
 Sets are used to store multiple items in a single variable.
 Set is one of 4 built-in data types in Python used to store collections of
data, the other 3 are List, Tuple, and Dictionary, all with different
qualities and usage.
 A set is a collection which is both unordered and unindexed.
 Sets are written with curly brackets.
Introduction to AI with ML
07:Data Structures-Sets
 You cannot access items in a set by referring to an index or a key.
 But you can loop through the set items using a for loop, or ask if a
specified value is present in a set, by using the in keyword.
 Once a set is created, you cannot change its items, but you can add new
items.
 To add one item to a set use the add() method.
 To remove an item in a set, use the remove(), or the discard() method.
Introduction to AI with ML
07:Data Structures-Sets
Introduction to AI with ML
07:Data Structures-DICT
 Dictionaries are used to store data values in key:value pairs.
 A dictionary is a collection which is ordered*, changeable and does not
allow duplicates.
 We use it to create JSON APIS.
Introduction to AI with ML
07:Data Structures-DICT
 You can access the items of a dictionary by referring to its key
name, inside square brackets:
 Update the "year" of the car by using the update() method:
Introduction to AI with ML
07:Pandas data frame
The Pandas DataFrame is a structure that contains two-dimensional data and its
corresponding labels. DataFrames are widely used in data science, machine learning,
scientific computing, and many other data-intensive fields. DataFrames are similar to
SQL tables or the spreadsheets that you work with in Excel or Calc.
Introduction to AI with ML
08:Functions
Introduction to AI with ML
08:Functions
A function is a block of code which only runs when it is called.
You can pass data, known as parameters, into a function.
A function can return data as a result.
Introduction to AI with ML
09:Object Oriented Programming
Object-oriented programming (OOP) is a programming paradigm based on the
concept of "objects", which can contain data and code: data in the form of fields
(often known as attributes or properties), and code, in the form of procedures
(often known as methods).
Introduction to AI with ML
09:Object Oriented Programming
Introduction to AI with ML
09:Object Oriented Programming
Name
Attributes
Actions
Introduction to AI with ML
09:Object Oriented Programming
A class is an extensible program-code-template for creating objects, although a very
tiny application might need just a single class. The class must go within a pair of curly
braces.
Introduction to AI with ML
Class design like Blueprint architecture
Introduction to AI with ML
Class design
Introduction to AI with ML
Class design
Introduction to AI with ML
09:Object Oriented Programming provide
code reuse
 Code reuse is the practice of using existing code for a new function or
software.
 This saves time, improves the features in your program, and generally makes
for more cost-effective programming. Reusability is an important issue in
software engineering.
Introduction to AI with ML
09:Object Oriented Programming
Class
Jeep
Honda
Nissan
Mercedes
Car
Introduction to AI with ML
09:Object Oriented Programming provide
code reuse
 Code reuse is the practice of using existing code for a new function or
software.
 This saves time, improves the features in your program, and generally makes
for more cost-effective programming. Reusability is an important issue in
software engineering.
Introduction to AI with ML
09:Object Oriented Programming-
provide Inheritance
Introduction to AI with ML
Create Class using unified modeling
language UML

More Related Content

What's hot

Model Drift Monitoring using Tensorflow Model Analysis
Model Drift Monitoring using Tensorflow Model AnalysisModel Drift Monitoring using Tensorflow Model Analysis
Model Drift Monitoring using Tensorflow Model Analysis
Vivek Raja P S
 
2021 02 23 MVP Fusion Getting Started with Machine Learning.Net and AutoML
2021 02 23 MVP Fusion Getting Started with Machine Learning.Net and AutoML2021 02 23 MVP Fusion Getting Started with Machine Learning.Net and AutoML
2021 02 23 MVP Fusion Getting Started with Machine Learning.Net and AutoML
Bruno Capuano
 
Major Programming Paradigms
Major Programming ParadigmsMajor Programming Paradigms
Major Programming Paradigms
ASIMYILDIZ
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
Rahul Jain
 
Robust and declarative machine learning pipelines for predictive buying at Ba...
Robust and declarative machine learning pipelines for predictive buying at Ba...Robust and declarative machine learning pipelines for predictive buying at Ba...
Robust and declarative machine learning pipelines for predictive buying at Ba...
Gianmario Spacagna
 
Object reusability in python
Object reusability in pythonObject reusability in python
Object reusability in python
Learnbay Datascience
 
#_ varible function
#_ varible function #_ varible function
#_ varible function
abdullah al mahamud rosi
 
Machine learning
Machine learningMachine learning
Machine learning
eonx_32
 
Ferruzza g automl deck
Ferruzza g   automl deckFerruzza g   automl deck
Ferruzza g automl deck
Eric Dill
 
Machine learning 101 dkom 2017
Machine learning 101 dkom 2017Machine learning 101 dkom 2017
Machine learning 101 dkom 2017
fredverheul
 
Wolfram alpha presentation
Wolfram alpha presentationWolfram alpha presentation
Wolfram alpha presentation
Matthew Imaizumi
 
ACM init() Spring 2015 Day 1
ACM init() Spring 2015 Day 1ACM init() Spring 2015 Day 1
ACM init() Spring 2015 Day 1
UCLA Association of Computing Machinery
 
Meetup sthlm - introduction to Machine Learning with demo cases
Meetup sthlm - introduction to Machine Learning with demo casesMeetup sthlm - introduction to Machine Learning with demo cases
Meetup sthlm - introduction to Machine Learning with demo cases
Zenodia Charpy
 
Rails best practices
Rails best practicesRails best practices
Rails best practices
Achintya Kumar
 
Machine Learning 101 | Essential Tools for Machine Learning
Machine Learning 101 | Essential Tools for Machine LearningMachine Learning 101 | Essential Tools for Machine Learning
Machine Learning 101 | Essential Tools for Machine Learning
Hafiz Muhammad Attaullah
 
Machine Learning and Applications
Machine Learning and ApplicationsMachine Learning and Applications
Machine Learning and Applications
Geeta Arora
 
Rails Tips and Best Practices
Rails Tips and Best PracticesRails Tips and Best Practices
Rails Tips and Best Practices
David Keener
 
Procedural programming
Procedural programmingProcedural programming
Procedural programming
Anbarasan Gangadaran
 
Primer to Machine Learning
Primer to Machine LearningPrimer to Machine Learning
Primer to Machine Learning
Jeff Tanner
 
Machine learning
Machine learningMachine learning
Machine learning
Saravanan Subburayal
 

What's hot (20)

Model Drift Monitoring using Tensorflow Model Analysis
Model Drift Monitoring using Tensorflow Model AnalysisModel Drift Monitoring using Tensorflow Model Analysis
Model Drift Monitoring using Tensorflow Model Analysis
 
2021 02 23 MVP Fusion Getting Started with Machine Learning.Net and AutoML
2021 02 23 MVP Fusion Getting Started with Machine Learning.Net and AutoML2021 02 23 MVP Fusion Getting Started with Machine Learning.Net and AutoML
2021 02 23 MVP Fusion Getting Started with Machine Learning.Net and AutoML
 
Major Programming Paradigms
Major Programming ParadigmsMajor Programming Paradigms
Major Programming Paradigms
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
Robust and declarative machine learning pipelines for predictive buying at Ba...
Robust and declarative machine learning pipelines for predictive buying at Ba...Robust and declarative machine learning pipelines for predictive buying at Ba...
Robust and declarative machine learning pipelines for predictive buying at Ba...
 
Object reusability in python
Object reusability in pythonObject reusability in python
Object reusability in python
 
#_ varible function
#_ varible function #_ varible function
#_ varible function
 
Machine learning
Machine learningMachine learning
Machine learning
 
Ferruzza g automl deck
Ferruzza g   automl deckFerruzza g   automl deck
Ferruzza g automl deck
 
Machine learning 101 dkom 2017
Machine learning 101 dkom 2017Machine learning 101 dkom 2017
Machine learning 101 dkom 2017
 
Wolfram alpha presentation
Wolfram alpha presentationWolfram alpha presentation
Wolfram alpha presentation
 
ACM init() Spring 2015 Day 1
ACM init() Spring 2015 Day 1ACM init() Spring 2015 Day 1
ACM init() Spring 2015 Day 1
 
Meetup sthlm - introduction to Machine Learning with demo cases
Meetup sthlm - introduction to Machine Learning with demo casesMeetup sthlm - introduction to Machine Learning with demo cases
Meetup sthlm - introduction to Machine Learning with demo cases
 
Rails best practices
Rails best practicesRails best practices
Rails best practices
 
Machine Learning 101 | Essential Tools for Machine Learning
Machine Learning 101 | Essential Tools for Machine LearningMachine Learning 101 | Essential Tools for Machine Learning
Machine Learning 101 | Essential Tools for Machine Learning
 
Machine Learning and Applications
Machine Learning and ApplicationsMachine Learning and Applications
Machine Learning and Applications
 
Rails Tips and Best Practices
Rails Tips and Best PracticesRails Tips and Best Practices
Rails Tips and Best Practices
 
Procedural programming
Procedural programmingProcedural programming
Procedural programming
 
Primer to Machine Learning
Primer to Machine LearningPrimer to Machine Learning
Primer to Machine Learning
 
Machine learning
Machine learningMachine learning
Machine learning
 

Similar to Part 2 Python

Intro to python
Intro to pythonIntro to python
Intro to python
Mohamed Essam
 
2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx
Mohamed Essam
 
Python data structures and modules
Python data structures and modulesPython data structures and modules
Python data structures and modules
Mohamed Essam
 
Artificial Intelligence concepts in a Nutshell
Artificial Intelligence concepts in a NutshellArtificial Intelligence concepts in a Nutshell
Artificial Intelligence concepts in a Nutshell
kannanalagu1
 
OODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsOODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objects
Shanmuganathan C
 
Adarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptxAdarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptx
hkabir55
 
Python Programming
Python ProgrammingPython Programming
Python Programming
SheikAllavudeenN
 
pythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxpythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptx
RohitKumar639388
 
Basic of python for data analysis
Basic of python for data analysisBasic of python for data analysis
Basic of python for data analysis
Pramod Toraskar
 
Python training
Python trainingPython training
Python training
Kunalchauhan76
 
Data Structures.pdf
Data Structures.pdfData Structures.pdf
Data Structures.pdf
SudhanshiBakre1
 
employee turnover prediction document.docx
employee turnover prediction document.docxemployee turnover prediction document.docx
employee turnover prediction document.docx
rohithprabhas1
 
Python-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptxPython-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptx
dmdHaneef
 
Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3
Chariza Pladin
 
PYTHON PPT.pptx
PYTHON PPT.pptxPYTHON PPT.pptx
PYTHON PPT.pptx
AbhishekMourya36
 
LPR - Week 1
LPR - Week 1LPR - Week 1
LPR - Week 1
FaridRomadhana
 
Data Science With Python | Python For Data Science | Python Data Science Cour...
Data Science With Python | Python For Data Science | Python Data Science Cour...Data Science With Python | Python For Data Science | Python Data Science Cour...
Data Science With Python | Python For Data Science | Python Data Science Cour...
Simplilearn
 
Python for Data Science: A Comprehensive Guide
Python for Data Science: A Comprehensive GuidePython for Data Science: A Comprehensive Guide
Python for Data Science: A Comprehensive Guide
priyanka rajput
 
Ad507
Ad507Ad507
First Steps in Python Programming
First Steps in Python ProgrammingFirst Steps in Python Programming
First Steps in Python Programming
Dozie Agbo
 

Similar to Part 2 Python (20)

Intro to python
Intro to pythonIntro to python
Intro to python
 
2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx
 
Python data structures and modules
Python data structures and modulesPython data structures and modules
Python data structures and modules
 
Artificial Intelligence concepts in a Nutshell
Artificial Intelligence concepts in a NutshellArtificial Intelligence concepts in a Nutshell
Artificial Intelligence concepts in a Nutshell
 
OODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsOODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objects
 
Adarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptxAdarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptx
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
pythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxpythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptx
 
Basic of python for data analysis
Basic of python for data analysisBasic of python for data analysis
Basic of python for data analysis
 
Python training
Python trainingPython training
Python training
 
Data Structures.pdf
Data Structures.pdfData Structures.pdf
Data Structures.pdf
 
employee turnover prediction document.docx
employee turnover prediction document.docxemployee turnover prediction document.docx
employee turnover prediction document.docx
 
Python-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptxPython-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptx
 
Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3
 
PYTHON PPT.pptx
PYTHON PPT.pptxPYTHON PPT.pptx
PYTHON PPT.pptx
 
LPR - Week 1
LPR - Week 1LPR - Week 1
LPR - Week 1
 
Data Science With Python | Python For Data Science | Python Data Science Cour...
Data Science With Python | Python For Data Science | Python Data Science Cour...Data Science With Python | Python For Data Science | Python Data Science Cour...
Data Science With Python | Python For Data Science | Python Data Science Cour...
 
Python for Data Science: A Comprehensive Guide
Python for Data Science: A Comprehensive GuidePython for Data Science: A Comprehensive Guide
Python for Data Science: A Comprehensive Guide
 
Ad507
Ad507Ad507
Ad507
 
First Steps in Python Programming
First Steps in Python ProgrammingFirst Steps in Python Programming
First Steps in Python Programming
 

More from Mohamed Essam

Data Science Crash course
Data Science Crash courseData Science Crash course
Data Science Crash course
Mohamed Essam
 
2.Feature Extraction
2.Feature Extraction2.Feature Extraction
2.Feature Extraction
Mohamed Essam
 
Data Science
Data ScienceData Science
Data Science
Mohamed Essam
 
Introduction to Robotics.pptx
Introduction to Robotics.pptxIntroduction to Robotics.pptx
Introduction to Robotics.pptx
Mohamed Essam
 
Introduction_to_Gui_with_tkinter.pptx
Introduction_to_Gui_with_tkinter.pptxIntroduction_to_Gui_with_tkinter.pptx
Introduction_to_Gui_with_tkinter.pptx
Mohamed Essam
 
Getting_Started_with_DL_in_Keras.pptx
Getting_Started_with_DL_in_Keras.pptxGetting_Started_with_DL_in_Keras.pptx
Getting_Started_with_DL_in_Keras.pptx
Mohamed Essam
 
Linear_algebra.pptx
Linear_algebra.pptxLinear_algebra.pptx
Linear_algebra.pptx
Mohamed Essam
 
Let_s_Dive_to_Deep_Learning.pptx
Let_s_Dive_to_Deep_Learning.pptxLet_s_Dive_to_Deep_Learning.pptx
Let_s_Dive_to_Deep_Learning.pptx
Mohamed Essam
 
OOP-Advanced_Programming.pptx
OOP-Advanced_Programming.pptxOOP-Advanced_Programming.pptx
OOP-Advanced_Programming.pptx
Mohamed Essam
 
1.Basic_Syntax
1.Basic_Syntax1.Basic_Syntax
1.Basic_Syntax
Mohamed Essam
 
KNN.pptx
KNN.pptxKNN.pptx
KNN.pptx
Mohamed Essam
 
Regularization_BY_MOHAMED_ESSAM.pptx
Regularization_BY_MOHAMED_ESSAM.pptxRegularization_BY_MOHAMED_ESSAM.pptx
Regularization_BY_MOHAMED_ESSAM.pptx
Mohamed Essam
 
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
Mohamed Essam
 
Clean_Code
Clean_CodeClean_Code
Clean_Code
Mohamed Essam
 
Linear_Regression
Linear_RegressionLinear_Regression
Linear_Regression
Mohamed Essam
 
Naieve_Bayee.pptx
Naieve_Bayee.pptxNaieve_Bayee.pptx
Naieve_Bayee.pptx
Mohamed Essam
 
Activation_function.pptx
Activation_function.pptxActivation_function.pptx
Activation_function.pptx
Mohamed Essam
 
Deep_Learning_Frameworks
Deep_Learning_FrameworksDeep_Learning_Frameworks
Deep_Learning_Frameworks
Mohamed Essam
 
Neural_Network
Neural_NetworkNeural_Network
Neural_Network
Mohamed Essam
 
Software Engineering
Software EngineeringSoftware Engineering
Software Engineering
Mohamed Essam
 

More from Mohamed Essam (20)

Data Science Crash course
Data Science Crash courseData Science Crash course
Data Science Crash course
 
2.Feature Extraction
2.Feature Extraction2.Feature Extraction
2.Feature Extraction
 
Data Science
Data ScienceData Science
Data Science
 
Introduction to Robotics.pptx
Introduction to Robotics.pptxIntroduction to Robotics.pptx
Introduction to Robotics.pptx
 
Introduction_to_Gui_with_tkinter.pptx
Introduction_to_Gui_with_tkinter.pptxIntroduction_to_Gui_with_tkinter.pptx
Introduction_to_Gui_with_tkinter.pptx
 
Getting_Started_with_DL_in_Keras.pptx
Getting_Started_with_DL_in_Keras.pptxGetting_Started_with_DL_in_Keras.pptx
Getting_Started_with_DL_in_Keras.pptx
 
Linear_algebra.pptx
Linear_algebra.pptxLinear_algebra.pptx
Linear_algebra.pptx
 
Let_s_Dive_to_Deep_Learning.pptx
Let_s_Dive_to_Deep_Learning.pptxLet_s_Dive_to_Deep_Learning.pptx
Let_s_Dive_to_Deep_Learning.pptx
 
OOP-Advanced_Programming.pptx
OOP-Advanced_Programming.pptxOOP-Advanced_Programming.pptx
OOP-Advanced_Programming.pptx
 
1.Basic_Syntax
1.Basic_Syntax1.Basic_Syntax
1.Basic_Syntax
 
KNN.pptx
KNN.pptxKNN.pptx
KNN.pptx
 
Regularization_BY_MOHAMED_ESSAM.pptx
Regularization_BY_MOHAMED_ESSAM.pptxRegularization_BY_MOHAMED_ESSAM.pptx
Regularization_BY_MOHAMED_ESSAM.pptx
 
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
 
Clean_Code
Clean_CodeClean_Code
Clean_Code
 
Linear_Regression
Linear_RegressionLinear_Regression
Linear_Regression
 
Naieve_Bayee.pptx
Naieve_Bayee.pptxNaieve_Bayee.pptx
Naieve_Bayee.pptx
 
Activation_function.pptx
Activation_function.pptxActivation_function.pptx
Activation_function.pptx
 
Deep_Learning_Frameworks
Deep_Learning_FrameworksDeep_Learning_Frameworks
Deep_Learning_Frameworks
 
Neural_Network
Neural_NetworkNeural_Network
Neural_Network
 
Software Engineering
Software EngineeringSoftware Engineering
Software Engineering
 

Recently uploaded

RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 

Recently uploaded (20)

RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 

Part 2 Python

  • 2. CONTENT OF THIS COURSE Here’s what you’ll find in this Course : ● Introduction to python general-purpose programming language. ● What Python Used for. ● Companies uses Python. ● Setting Up the Environment. ● Start Python Programming
  • 3. Introduction to AI with ML What Python is? Python is a popular general-purpose programming language. It was created by Guido van Rossum in 1980, and released in 1991. It is used for:  Web development (server-side).  Artificial Intelligence .  Software Development.
  • 4. Introduction to AI with ML General Vs Specific Purpose
  • 5. Introduction to AI with ML What Python is? Python is a popular general-purpose programming language. It was created by Guido van Rossum in 1980, and released in 1991. It is used for:  Web development (server-side).  Artificial Intelligence .  Software Development.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11. Introduction to AI with ML Top Companies using python
  • 12. Introduction to AI with ML What make it so powerful for that is because it has a many framework! A framework is a set structure in which tasks are performed or completed. Typically, a framework refers to an often layered structure that indicates what kind of programs can or should be built and how they would connect to each other.
  • 13. Introduction to AI with ML Setting up the Enviroment
  • 14. Introduction to AI with ML An integrated development environment (IDE)
  • 15. Introduction to AI with ML Why it’s better to use an IDE than Running code in Note pad with python Compiler
  • 16. Introduction to AI with ML Functions
  • 17. Introduction to AI with ML WHAT DOES A COMPUTER DO?  performs calculations a billion calculations per second! two operations in same time light travels 1 foot.  Remembers results 100s of gigabytes of storage! typical machine could hold 1.5M books of standard size
  • 18. -Linus Torvalds “Talk is cheap. Show me the code.”
  • 19. Introduction to AI with ML 02:Variables
  • 20. Introduction to AI with ML Variables You can think of variable as a little box or a container to store data in the memory of the computer and later retrieve the data using the variable “name” Programmers get to choose the names of the variables You can change the contents of a variable in a later statement
  • 21. Introduction to AI with ML 02:Variables
  • 22. Introduction to AI with ML 02:Variables
  • 23. Introduction to AI with ML Arian 5 the worst bug disaster On June 4th, 1996, the very first Ariane 5 rocket ignited its engines and began speeding away from the coast of French Guiana. 37 seconds later, the rocket flipped 90 degrees in the wrong direction, and less than two seconds later, aerodynamic forces ripped the boosters apart from the main stage at a height of 4km.
  • 25. Introduction to AI with ML 01:Arithmetic Operations Operation Operator Addition + Subtraction - Multiplication * Division / Power ** Remainder %
  • 26. Introduction to AI with ML 03:User Input Python has an input function which lets you ask a user for some text input.
  • 27. Introduction to AI with ML 04:Comments in Python Comments in Python begin with a hash mark ( # ) and whitespace character and continue to the end of the line. Because comments do not execute, when you run a program you will not see any indication of the comment there. Comments are in the source code for humans to read, not for computers to execute.
  • 28. Introduction to AI with ML 05:Conditions Python uses boolean logic to evaluate conditions. The boolean values True and False are returned when an expression is compared or evaluated.
  • 31. Introduction to AI with ML 06:Loop Python has two primitive loop commands:  while loops  for loops
  • 32. Introduction to AI with ML 07:Data Structures • Every child knows that one can – at least beyond a certain number – find things much easier if one keeps order. We humans understand by keeping things in order that we separate the things that we possess into categories and assign fixed locations to these categories that we can remember. • We may simply throw socks into a drawer, but for other things like DVDs it is best to sort them beyond a certain number so that we can quickly find every DVD.
  • 34. Introduction to AI with ML 07:Data Structures-String What If I told u there is no Variable called string
  • 35. Introduction to AI with ML 07:Data Structures-String A L M E N T O R
  • 36. Introduction to AI with ML 07:Data Structures There are four collection data types in the Python programming language: List is a collection which is ordered and changeable. Allows duplicate members. Tuple is a collection which is ordered and unchangeable. Allows duplicate members. Set is a collection which is unordered and unindexed. No duplicate members. Dictionary is a collection which is ordered* and changeable. No duplicate members.
  • 37. Introduction to AI with ML 07:Data Structures-List  Lists are used to store multiple items in a single variable.  Lists are one of 4 built-in data types in Python used to store collections of data, the other 3 are Tuple, Set, and Dictionary, all with different qualities and usage.  The list is changeable, meaning that we can change, add, and remove items in a list after it has been created.  Lists are created using square brackets:
  • 38. Introduction to AI with ML 07:Data Structures-Tuples  Tuples are used to store multiple items in a single variable.  Tuple is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Set, and Dictionary, all with different qualities and usage.  A tuple is a collection which is ordered and unchangeable.  Tuples are written with round brackets.
  • 39. Introduction to AI with ML 07:Data Structures-Sets  Sets are used to store multiple items in a single variable.  Set is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Tuple, and Dictionary, all with different qualities and usage.  A set is a collection which is both unordered and unindexed.  Sets are written with curly brackets.
  • 40. Introduction to AI with ML 07:Data Structures-Sets  You cannot access items in a set by referring to an index or a key.  But you can loop through the set items using a for loop, or ask if a specified value is present in a set, by using the in keyword.  Once a set is created, you cannot change its items, but you can add new items.  To add one item to a set use the add() method.  To remove an item in a set, use the remove(), or the discard() method.
  • 41. Introduction to AI with ML 07:Data Structures-Sets
  • 42. Introduction to AI with ML 07:Data Structures-DICT  Dictionaries are used to store data values in key:value pairs.  A dictionary is a collection which is ordered*, changeable and does not allow duplicates.  We use it to create JSON APIS.
  • 43. Introduction to AI with ML 07:Data Structures-DICT  You can access the items of a dictionary by referring to its key name, inside square brackets:  Update the "year" of the car by using the update() method:
  • 44. Introduction to AI with ML 07:Pandas data frame The Pandas DataFrame is a structure that contains two-dimensional data and its corresponding labels. DataFrames are widely used in data science, machine learning, scientific computing, and many other data-intensive fields. DataFrames are similar to SQL tables or the spreadsheets that you work with in Excel or Calc.
  • 45. Introduction to AI with ML 08:Functions
  • 46. Introduction to AI with ML 08:Functions A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. A function can return data as a result.
  • 47. Introduction to AI with ML 09:Object Oriented Programming Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which can contain data and code: data in the form of fields (often known as attributes or properties), and code, in the form of procedures (often known as methods).
  • 48. Introduction to AI with ML 09:Object Oriented Programming
  • 49. Introduction to AI with ML 09:Object Oriented Programming Name Attributes Actions
  • 50. Introduction to AI with ML 09:Object Oriented Programming A class is an extensible program-code-template for creating objects, although a very tiny application might need just a single class. The class must go within a pair of curly braces.
  • 51. Introduction to AI with ML Class design like Blueprint architecture
  • 52. Introduction to AI with ML Class design
  • 53. Introduction to AI with ML Class design
  • 54. Introduction to AI with ML 09:Object Oriented Programming provide code reuse  Code reuse is the practice of using existing code for a new function or software.  This saves time, improves the features in your program, and generally makes for more cost-effective programming. Reusability is an important issue in software engineering.
  • 55. Introduction to AI with ML 09:Object Oriented Programming Class Jeep Honda Nissan Mercedes Car
  • 56. Introduction to AI with ML 09:Object Oriented Programming provide code reuse  Code reuse is the practice of using existing code for a new function or software.  This saves time, improves the features in your program, and generally makes for more cost-effective programming. Reusability is an important issue in software engineering.
  • 57. Introduction to AI with ML 09:Object Oriented Programming- provide Inheritance
  • 58. Introduction to AI with ML Create Class using unified modeling language UML