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

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Último (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

|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 .