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