SlideShare una empresa de Scribd logo
1 de 12
Python Language
Session 1
Getting Started
AGENDA

Course Preview

Introduction to Python

Installation

Data Types

Examples/Practical

Q&A
1. Course Preview
Module 1 : Introduction + Installation
Module 2 : Building Elements( Data types)
Module 3 : Control statements + Iterators
Module 4 : Logical statements + Application (1-4)
Module 5 : Functions
Module 6 : Collections ( list + tuples)
Module 7 : Collections
continued(Maps,sets,enum)
Module 8 : Applications (5-7)
2. Introduction to Python

Open Source Language

Object Oriented, HLL,Interpreted etc

Implemented in C

Cross platform (Windows,Unix,Macintosh)

Works on PC, Phones and Web

Statement grouping by indentation

Latest version 3.4.3 and 2.7.9
2. Introduction to Python (cont)

Extensive libraries are packaged together

Memory Management – Garbage collection

Integrates with C,C++ and Java.

Implementation (Cpython, IronPython and
Jython)
3. Installation
Installation method are different depending on
Operating system.
3.1 Unix Based System
a) Download source code from
https://www.python.org/downloads/source/
b) Unzip; ./configure
c) make ; make install
Python is mostly pre-installed on most unix based
systems. Generally binary are be found at
/usr/bin/python and
3. Installation (cont)
3.2 Window Based system
a) Download the installer from
https://www.python.org/downloads/windows/
b) Execute the binary file ,you need to
administrator to execute the binary.
c) Now selection the installation path ; then do
next and select components .
d) Set Environment variable.
My Computer Properties Advanced‣ ‣ ‣
Environment Variables . (Change it according to
3. Installation (cont)
3.3 Mac
Python is part of Mac OS environment. Tiger (Mac
OS 10.4) includes Python 2.3.5 and IDLE
(Integrated Development Environment).
Leopard (Mac OS 10.5) includes Python 2.5.1 ..
Python files can be found at
/System/Library/Frameworks/Python.framework/
Versions
Open terminal and type python.
4. Data Types
1. Integers : 32 Bit long ; range -2^32 to -2^32
2. Long Int :
3. Float Point (Double precision no) 64 bit
4. Boolean
5. Complex Number
6. Strings : Sequence of Unicode characters
7. Lists : Ordered Sequence of Values
8. Tuples : Ordered, immutable sequence of
values
Before we start coding..
1. Comments : Single line or multi lines
Single line – Begin with “#”
Multi line – Begin with triple quoted strings
'''
this is comments
'''
2. Printing : We use print function.
Print(“Hello World”) ## string
Print (20) ## integer
Print(g) ## literal value
5. Examples
1. Hello world
2. Addition of Numbers
3. Few more examples .
6. Q&A
Forum is open

Más contenido relacionado

Destacado

"Containers, DevOps, Microservices and Kafka: Tools used by our Monolith wrec...
"Containers, DevOps, Microservices and Kafka: Tools used by our Monolith wrec..."Containers, DevOps, Microservices and Kafka: Tools used by our Monolith wrec...
"Containers, DevOps, Microservices and Kafka: Tools used by our Monolith wrec...New Relic
 
Introduction to Python for Data Science
Introduction to Python for Data ScienceIntroduction to Python for Data Science
Introduction to Python for Data ScienceArc & Codementor
 
Introduction to Python programming
Introduction to Python programmingIntroduction to Python programming
Introduction to Python programmingDamian T. Gordon
 
Wenzhe Xu (Evelyn) Resume for Data Science
Wenzhe Xu (Evelyn) Resume for Data ScienceWenzhe Xu (Evelyn) Resume for Data Science
Wenzhe Xu (Evelyn) Resume for Data ScienceWenzhe(Evelyn) Xu
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming LanguageLaxman Puri
 
Introduction about Python by JanBask Training
Introduction about Python by JanBask TrainingIntroduction about Python by JanBask Training
Introduction about Python by JanBask TrainingJanBask Training
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to PythonNowell Strite
 

Destacado (7)

"Containers, DevOps, Microservices and Kafka: Tools used by our Monolith wrec...
"Containers, DevOps, Microservices and Kafka: Tools used by our Monolith wrec..."Containers, DevOps, Microservices and Kafka: Tools used by our Monolith wrec...
"Containers, DevOps, Microservices and Kafka: Tools used by our Monolith wrec...
 
Introduction to Python for Data Science
Introduction to Python for Data ScienceIntroduction to Python for Data Science
Introduction to Python for Data Science
 
Introduction to Python programming
Introduction to Python programmingIntroduction to Python programming
Introduction to Python programming
 
Wenzhe Xu (Evelyn) Resume for Data Science
Wenzhe Xu (Evelyn) Resume for Data ScienceWenzhe Xu (Evelyn) Resume for Data Science
Wenzhe Xu (Evelyn) Resume for Data Science
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
Introduction about Python by JanBask Training
Introduction about Python by JanBask TrainingIntroduction about Python by JanBask Training
Introduction about Python by JanBask Training
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 

Último

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 

Último (20)

YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 

|Python| A Brief Introduction|

  • 2. AGENDA  Course Preview  Introduction to Python  Installation  Data Types  Examples/Practical  Q&A
  • 3. 1. Course Preview Module 1 : Introduction + Installation Module 2 : Building Elements( Data types) Module 3 : Control statements + Iterators Module 4 : Logical statements + Application (1-4) Module 5 : Functions Module 6 : Collections ( list + tuples) Module 7 : Collections continued(Maps,sets,enum) Module 8 : Applications (5-7)
  • 4. 2. Introduction to Python  Open Source Language  Object Oriented, HLL,Interpreted etc  Implemented in C  Cross platform (Windows,Unix,Macintosh)  Works on PC, Phones and Web  Statement grouping by indentation  Latest version 3.4.3 and 2.7.9
  • 5. 2. Introduction to Python (cont)  Extensive libraries are packaged together  Memory Management – Garbage collection  Integrates with C,C++ and Java.  Implementation (Cpython, IronPython and Jython)
  • 6. 3. Installation Installation method are different depending on Operating system. 3.1 Unix Based System a) Download source code from https://www.python.org/downloads/source/ b) Unzip; ./configure c) make ; make install Python is mostly pre-installed on most unix based systems. Generally binary are be found at /usr/bin/python and
  • 7. 3. Installation (cont) 3.2 Window Based system a) Download the installer from https://www.python.org/downloads/windows/ b) Execute the binary file ,you need to administrator to execute the binary. c) Now selection the installation path ; then do next and select components . d) Set Environment variable. My Computer Properties Advanced‣ ‣ ‣ Environment Variables . (Change it according to
  • 8. 3. Installation (cont) 3.3 Mac Python is part of Mac OS environment. Tiger (Mac OS 10.4) includes Python 2.3.5 and IDLE (Integrated Development Environment). Leopard (Mac OS 10.5) includes Python 2.5.1 .. Python files can be found at /System/Library/Frameworks/Python.framework/ Versions Open terminal and type python.
  • 9. 4. Data Types 1. Integers : 32 Bit long ; range -2^32 to -2^32 2. Long Int : 3. Float Point (Double precision no) 64 bit 4. Boolean 5. Complex Number 6. Strings : Sequence of Unicode characters 7. Lists : Ordered Sequence of Values 8. Tuples : Ordered, immutable sequence of values
  • 10. Before we start coding.. 1. Comments : Single line or multi lines Single line – Begin with “#” Multi line – Begin with triple quoted strings ''' this is comments ''' 2. Printing : We use print function. Print(“Hello World”) ## string Print (20) ## integer Print(g) ## literal value
  • 11. 5. Examples 1. Hello world 2. Addition of Numbers 3. Few more examples .