Python Tricks A Buffet of Awesome Python Features FULL EBOOK PDF 2023.

 Python Tricks A Buffet of Awesome Python Features

FULL EBOOK PDF FREE

Introduction to programming in Python language

1. Presentation: Python is a programming language (like C, C++, fortran, java . . .), developed in 1989. Its main features are: — “open-source”: its use is free and source files are available and editable; — simple and very readable; — with a very extensive basic library; - large amount of libraries available: for scientific computation, statistics, databases, visualization . . . — high portability: independent from the operating system (linux, windows, MacOS); — object oriented; — dynamic typing: typing (associating with a variable of its type and allocating the memory zone accordingly) is done automatically during the execution of the program, which allows great flexibility and speed of programming, but which is paid for by an overconsumption of memory and a loss of performance; — provides support for the integration of other languages. How to make the source code work? There are two main techniques for translating source code into machine language: — compilation: a third-party application, called a compiler, transforms the lines of code in an executable file into machine language. Every time you make a change to the program, you have to recompile before you see the result. — interpretation: an interpreter translates the program line by line into machine language. This type of language offers greater convenience for development, but executions are often slower. In the case of Python, we can first admit that it is an interpreted language, which uses compiled modules. For expensive algorithmic operations, the Python language can interface with libraries written in low-level languages such as C. The different versions There are two versions of Python: 2.7 and 3.3. Version 3.3 is not a simple improvement of version 2.2. Please note that not all Python libraries migrated from 2.7 to 3.3.

Post a Comment

Previous Post Next Post