+ All Categories
Home > Data & Analytics > Python programming language

Python programming language

Date post: 22-Mar-2017
Category:
Upload: ibrahim-shakhatreh
View: 56 times
Download: 0 times
Share this document with a friend
23
Programming Language
Transcript
Page 1: Python programming language

ProgrammingLanguage

Page 2: Python programming language

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

Page 3: Python programming language

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

Page 4: Python programming language

What sort of language is Python?

Page 5: Python programming language

widely used high level programming language (Massive Community) .

An interpreted language.

Open source general-purpose language.

Object Oriented, Procedural, Functional.

Great interactive environment.

Python

Page 6: Python programming language

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?

Page 7: Python programming language

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

learning)

Embedded systems

Where can we find Python?

Page 8: Python programming language

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?

Page 9: Python programming language

Code sample (Syntax)

Page 10: Python programming language

Code sample (Syntax)

Page 11: Python programming language

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

Page 12: Python programming language

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

Page 13: Python programming language

Dictionaries examples

Page 14: Python programming language

Less Code with more actions examples

Page 15: Python programming language

Less code with more actionsPython vs TCL

Page 16: Python programming language

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)

Page 17: Python programming language

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 ??

Page 18: Python programming language

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)

Page 19: Python programming language

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

Page 20: Python programming language

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

Page 21: Python programming language

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

Page 23: Python programming language

Recommended