This document provides an overview of the Python programming language, including its history, implementations, key features, examples of usage, and popularity. Some of the key points covered include:
- Python was created in the late 1980s and continues to be actively developed and improved. It has a simple yet powerful design philosophy.
- It has multiple implementations like CPython, PyPy, Jython, and is widely used across industries like Google, NASA, and YouTube.
- Python code is highly readable and emphasizes readability. It has a large standard library and ecosystem of over 100,000 packages.
- Popular applications include web development, science/data analysis, machine learning, desktop GUIs, and more.
1 of 24
Download to read offline
More Related Content
Python. Why to learn?
1. Why to learn?
Oleh Korkh
https://www.linkedin.com/in/oleh-korkh-ba2a6825/
https://www.facebook.com/korkholeh
https://twitter.com/korkholeh
https://bitbucket.org/korkholeh/
5. History
ABC programming language - early 1980s
Python implementation was started in 1989 (based on ideas
from ABC and Modula-3)
Python 0.9 - 1991
Python 1.0 - 1994
Python 2.0 - 2000
Python 2.7 - 2010
Python 3.0 - 2008
Python 3.6 - 2016
7. Code Example
lower = int(input("Enter lower range: "))
upper = int(input("Enter upper range: "))
print("Prime numbers between",lower,"and",upper,"are:")
for num in range(lower, upper+1):
# prime numbers are greater than 1
if num > 1:
for i in range(2, num):
if (num % i) == 0:
break
else:
print(num)
8. Zen of Python
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
...
https://www.python.org/dev/peps/pep-0020/
9. Key features
Simple. Minimalistic. Easy to learn. Easy to read.
General purpose
Excellent documentation
Free and Open Source
Modern High-Level Language
Dynamically but strong typed. Optional static typing.
Portable
Interpreted
Interactive
Object Oriented, Imperative, Functional, Procedural
Powerful control structures and data types
Extensible
Embeddable
Large standard library. 117000+ packages in PyPi
Large community
23. Any cons?
Not so fast like compiled languages (not a big problem in 90% of the cases)
Dynamically typed (type hinting can be helpful)
Global Interpreter Lock (hard to load your powerful multicore CPU)
Not for mobile development (possible but ...)
Not for memory intensive tasks (libraries can help)
Lambdas are quite limited (in comparison with Lisp)