SlideShare a Scribd company logo
Introduction to Python A readable, dynamic, pleasant,  flexible, fast and powerful language Nowell Strite  Manager of Tech Solutions @ PBS [email_address]
Overview Background Syntax Types / Operators / Control Flow Functions Classes Tools
What is Python Multi-purpose (Web, GUI, Scripting, etc.) Object Oriented Interpreted Strongly typed and Dynamically typed Focus on readability and productivity
Features Batteries Included Everything is an Object Interactive Shell Strong Introspection Cross Platform CPython, Jython, IronPython, PyPy
Who Uses Python Google PBS NASA Library of Congress the ONION ...the list goes on...
Releases Created in 1989 by Guido Van Rossum Python 1.0 released in 1994 Python 2.0 released in 2000 Python 3.0 released in 2008 Python 2.7 is the recommended version 3.0 adoption will take a few years
Syntax
Hello World hello_world.py
Indentation Most languages don’t care about indentation Most humans do We tend to group similar things together
Indentation The else here actually belongs to the 2nd if statement
Indentation The else here actually belongs to the 2nd if statement
Indentation I knew a coder like this
Indentation You should always be explicit
Indentation Text Python embraces indentation
Comments
Types
Strings
Numbers
Null
Lists
Lists
Dictionaries
Dictionary Methods
Booleans
Operators
Arithmetic
String Manipulation
Logical Comparison
Identity Comparison
Arithmetic Comparison
Control Flow
Conditionals
For Loop
Expanded For Loop
While Loop
List Comprehensions Useful for replacing simple for-loops.
Functions
Basic Function
Function Arguments
Arbitrary Arguments
Fibonacci
Fibonacci Generator
Classes
Class Declaration
Class Attributes Attributes assigned at class declaration should always be immutable
Class Methods
Class Instantiation & Attribute Access
Class Inheritance
Python’s Way No interfaces No real private attributes/functions Private attributes start (but do not end) with double underscores. Special class methods start and end with double underscores. __init__, __doc__, __cmp__, __str__
Imports Allows code isolation and re-use Adds references to variables/classes/functions/etc. into current namespace
Imports
More Imports
Error Handling
Documentation
Docstrings
Tools
Web Frameworks Django Flask Pylons TurboGears Zope Grok
IDEs Emacs Vim Komodo PyCharm Eclipse (PyDev)
Package Management
Resources http://python.org / http://diveintopython.org / http://djangoproject.com /
Example
Going Further Decorators Context Managers Lambda functions Generators ...
Questions?
Thanks!

More Related Content

PPT
Python Programming ppt
PDF
Python final ppt
PPTX
Python - An Introduction
PDF
Introduction to python programming
PPTX
Introduction to python
PPTX
Python 3 Programming Language
PPTX
Introduction to-python
PPT
Python ppt
Python Programming ppt
Python final ppt
Python - An Introduction
Introduction to python programming
Introduction to python
Python 3 Programming Language
Introduction to-python
Python ppt

What's hot (20)

PPT
Introduction to Python
PDF
Introduction To Python | Edureka
PPTX
Introduction to python
ODP
Python Presentation
PPTX
Introduction to python for Beginners
PDF
Python basic
PPTX
Phython Programming Language
PPTX
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
PPTX
Python Tutorial Part 1
PDF
Python Basics | Python Tutorial | Edureka
PPTX
Python
PPTX
Introduction to the basics of Python programming (part 1)
PPTX
Python Seminar PPT
PDF
Introduction to python
PPTX
Chapter 03 python libraries
PPTX
Python basics
PDF
Python introduction
PPTX
Python Functions
PPTX
Python basics
PPSX
Modules and packages in python
Introduction to Python
Introduction To Python | Edureka
Introduction to python
Python Presentation
Introduction to python for Beginners
Python basic
Phython Programming Language
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Python Tutorial Part 1
Python Basics | Python Tutorial | Edureka
Python
Introduction to the basics of Python programming (part 1)
Python Seminar PPT
Introduction to python
Chapter 03 python libraries
Python basics
Python introduction
Python Functions
Python basics
Modules and packages in python
Ad

Viewers also liked (20)

PPTX
Brenda Spoonemore - A biz dev playbook for startups: Why, when and how to do ...
PDF
Understand A/B Testing in 9 use cases & 7 mistakes
PDF
Wireframes - a brief overview
PDF
HTML & CSS Masterclass
PPTX
SQL Tutorial for Marketers
PDF
Intro to Facebook Ads
PDF
10 Ways You're Using AdWords Wrong and How to Correct Those Practices
PPTX
Biz Dev 101 - An Interactive Workshop on How Deals Get Done
PPTX
Some Advanced Remarketing Ideas
PDF
The Beginners Guide to Startup PR #startuppr
PPTX
Google Analytics Fundamentals: Set Up and Basics for Measurement
PDF
Lean Community Building: Getting the Most Bang for Your Time & Money
PDF
Intro to Mixpanel
PPTX
The Science of Marketing Automation
PDF
No excuses user research
PPTX
The Science behind Viral marketing
PDF
User experience doesn't happen on a screen: It happens in the mind.
PPTX
LinkedIn Ads Platform Master Class
PDF
A Guide to User Research (for People Who Don't Like Talking to Other People)
PDF
How Top Brands Use Referral Programs to Drive Customer Acquisition
Brenda Spoonemore - A biz dev playbook for startups: Why, when and how to do ...
Understand A/B Testing in 9 use cases & 7 mistakes
Wireframes - a brief overview
HTML & CSS Masterclass
SQL Tutorial for Marketers
Intro to Facebook Ads
10 Ways You're Using AdWords Wrong and How to Correct Those Practices
Biz Dev 101 - An Interactive Workshop on How Deals Get Done
Some Advanced Remarketing Ideas
The Beginners Guide to Startup PR #startuppr
Google Analytics Fundamentals: Set Up and Basics for Measurement
Lean Community Building: Getting the Most Bang for Your Time & Money
Intro to Mixpanel
The Science of Marketing Automation
No excuses user research
The Science behind Viral marketing
User experience doesn't happen on a screen: It happens in the mind.
LinkedIn Ads Platform Master Class
A Guide to User Research (for People Who Don't Like Talking to Other People)
How Top Brands Use Referral Programs to Drive Customer Acquisition
Ad

Similar to Introduction to Python (20)

PDF
PDF
Introduction to python
PPT
Python Introduction
PPTX
Introduction-to-Python.pptx
PPT
Python intro and competitive programming
PPT
452181636-Python-dsfdsfdsfdsfsdfdsfsdSeminar-1-ppt.ppt
PDF
05 python.pdf
PDF
Py-Slides- easuajsjsjejejjwlqpqpqpp1.pdf
PPT
notwa dfdfvs gf fdgfgh s thgfgh frg reggg
PDF
Python Programing Bio computing,basic concepts lab,,
PDF
Computer Related material named Phython ok
PPT
program on python what is python where it was started by whom started
PPT
Python Over View (Python for mobile app Devt)1.ppt
PPT
Py-Slides-1.ppt1234444444444444444444444444444444444444444
PPT
Python slides for the beginners to learn
PPT
Py-Slides-1.pptPy-Slides-1.pptPy-Slides-1.pptPy-Slides-1.ppt
PPTX
Python.pptx
PPTX
Introduction-to-Python-Programming1.pptx
PDF
WEB PROGRAMMING UNIT VIII BY BHAVSINGH MALOTH
PPTX
Python final presentation kirti ppt1
Introduction to python
Python Introduction
Introduction-to-Python.pptx
Python intro and competitive programming
452181636-Python-dsfdsfdsfdsfsdfdsfsdSeminar-1-ppt.ppt
05 python.pdf
Py-Slides- easuajsjsjejejjwlqpqpqpp1.pdf
notwa dfdfvs gf fdgfgh s thgfgh frg reggg
Python Programing Bio computing,basic concepts lab,,
Computer Related material named Phython ok
program on python what is python where it was started by whom started
Python Over View (Python for mobile app Devt)1.ppt
Py-Slides-1.ppt1234444444444444444444444444444444444444444
Python slides for the beginners to learn
Py-Slides-1.pptPy-Slides-1.pptPy-Slides-1.pptPy-Slides-1.ppt
Python.pptx
Introduction-to-Python-Programming1.pptx
WEB PROGRAMMING UNIT VIII BY BHAVSINGH MALOTH
Python final presentation kirti ppt1

Recently uploaded (20)

PPTX
MYSQL Presentation for SQL database connectivity
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Electronic commerce courselecture one. Pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Modernizing your data center with Dell and AMD
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
MYSQL Presentation for SQL database connectivity
Reach Out and Touch Someone: Haptics and Empathic Computing
Electronic commerce courselecture one. Pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
20250228 LYD VKU AI Blended-Learning.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
A Presentation on Artificial Intelligence
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Modernizing your data center with Dell and AMD
Empathic Computing: Creating Shared Understanding
Big Data Technologies - Introduction.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Chapter 3 Spatial Domain Image Processing.pdf
Machine learning based COVID-19 study performance prediction
Diabetes mellitus diagnosis method based random forest with bat algorithm

Introduction to Python