Python programming language

Post on 22-Mar-2017

57 views 0 download

transcript

ProgrammingLanguage

Python was conceived in the late 1980s, and its implementation began in December 1989 by Guido van Rossum .

first released in 1991.

Python 2.0 was released on 2000 with new features like supporting (Unicode …).

History of Python

Python 3.0 (Python 3000 or py3k) was released on 3 December 2008.

The End Of Life date (EOL, sunset date) for Python 2.7 was initially set at 2015, then postponed to 2020.

History of Python

What sort of language is Python?

widely used high level programming language (Massive Community) .

An interpreted language.

Open source general-purpose language.

Object Oriented, Procedural, Functional.

Great interactive environment.

Python

On-line games and famous websites:www.Instagram.com

www.washingtonpost.com

www.nasa.gov

www.pinterest.com

www.spotify.com/

www.redit.com

www.youtube.com

www.dropbox.com

Yahoo Mapswww.Bitly.com

Check many others here..

Where can we find Python?

Web services Applications Science (for data science/statistics & machine learning/Deep

learning)

Embedded systems

Where can we find Python?

Web crawling & scrapping/harvesting Scrapping: is HTML/XML parsing technique to obtain data from

web pages in websites that do not provide developer APISuch as Scrapy framework and BeautifulSoup4

Where can we find Python?

Code sample (Syntax)

Code sample (Syntax)

Assignment uses = and comparison uses ==. For numbers + - * / % are as expected. Special use of + for string concatenation. Special use of % for string formatting (as with printf in C) Logical operators are words (and, or, not) not

symbols The basic printing command is print. The first assignment to a variable creates it. Variable types don’t need to be declared. Python figures out the variable types on its own.

Enough to Understand the Code

Whitespace is meaningful in Python: especially indentation and placement of newlines.

Use new line to end line of code.

No braces { } to mark blocks of code in Python.

Often a colon appears at the start of a new block.

White Spaces

Dictionaries examples

Less Code with more actions examples

Less code with more actionsPython vs TCL

I created two lists with same length (1000) and passed them to bubble sort function in both (py && tcl) and gives me these results :

1- Python : 00.393000s

2- TCL : 09.928s

Python vs TCL (performance)

Python vs TCL

Wide comparison between Python and TCL in this link:

http://vschart.com/compare/tcl-programming-language/vs/python-programming-language

What is your opinion about this comparison ??

comparing two lists with same length (1000)

and passed them to bubble sort function in both (py && php) and it gives me these results :

1- Python : 00.393000s.

2- PHP : 00.647000s.

Python vs PHP(Performance)

In this link we have wide comparison between these two programming language.

http://vschart.com/compare/python-programming-language/vs/php

What is your opinion about this comparison ??

Python vs PHP

it seemed obvious to me that raw language speed and framework optimization level are the most important parts to website performance.

Then it seems pretty obvious to me that framework and language speed just don’t matter in overall application performance and success.

Web framework performance

Load balancer Web accelerator Web server Application server The framework Cache Database Architecture impact

To read more about visit this link :https://gearheart.io/blog/ruby-on-rails-vs-django-performance-comparison/

What impacts application performance