This document provides an introduction to the Python programming language. It covers Python's history and features, including its syntax, types, operators, control flow, functions, classes, and tools. Python is a readable, dynamic language suitable for web development, GUIs, scripting, and more. It has a focus on readability and productivity. Major companies and organizations that use Python include Google, NASA, Dropbox, IBM, Instagram, and Mozilla.
What is Python
Multi-purpose (Web, GUI, Scripting, etc.)
Object Oriented
Interpreted
Strongly typed and Dynamically typed
Focus on readability and productivity
4.
Features
Batteries Included
Everything is an Object
Interactive Shell
Strong Introspection
Cross Platform
CPython, Jython, IronPython, PyPy
5.
Who Uses Python
Google (Youtube)
NASA
Dropbox
IBM
Instagram
Mozilla
6.
Yahoo
Quora
Reddit
Red Hat
Git Hub
Cisco
… List goes on …
Who Uses Python
7.
Releases
Created in1989 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.6 version is Latest
Indentation
Most languagesdon’t care about indentation
Most humans do
We tend to group similar things together
Indentation Allow to Code Beautifully
Python’s Way
Nointerfaces
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__
48.
Imports
Allows codeisolation and re-use
Adds references to variables/classes/functions/etc. into
current namespace