-->

تحميل كتاب تعلم أساسيات بايثون Python Basics A Self-Teaching Introduction

تحميل كتاب تعلم أساسيات بايثون Python Basics A Self-Teaching Introduction
    تحميل كتاب تعلم أساسيات بايثون Python Basics A Self-Teaching Introduction
    Python Basics A Self-Teaching Introduction , Learn python
    تحميل كتاب تعلم أساسيات بايثون Python Basics A Self-Teaching Introduction ، استكمالا لسلسلة تعلم بايثون للمبتدئين Learn Python نقدم لكم في هذه المقالة كتاب تعلم أساسيات بايثون Python Basics A Self-Teaching Introduction ، من تأليف H. Bhasin .

    An Intoduction to the contents of a Book Python Basics A Self-Teaching Introduction

    SOME OF THE FEATURES OF PYTHON

    As stated earlier, Python is a simple but powerful language. Python is portable. It has built-in object types, many libraries and is free. This section briefly discusses the features and strengths of Python.
    • Easy
    Python is easy to learn and understand. As a matter of fact, if you are from a programming background you will find it elegant and uncluttered. The removal of braces and parentheses makes the code short and sweet.

    It may also be stated here that learning something new is an involved and intricate task. However, the simplicity of Python makes it almost a cake walk. Moreover, learning advanced features in Python is a bit intricate, but is worth the effort. It is also easy to understand a project written in Python. The code, in Python, is concise and effective and therefore understandable and manageable.
    • Type and Run
    In most projects, testing something new requires scores of changes and therefore recompilations and re-runs. This makes testing of code a difficult and time consuming task. In Python, a code can be run easily. As a matter of fact, we run scripts in Python. As we will see later in this chapter, Python also provides the user with an interactive environment, in which one can run independent commands.

    • Free
    Python is not propriety software. One can download Python compilers from among the various available choices. Moreover, there are no known legal issues involved in the distribution of the code developed in Python.

    FUNCTIONS FOR STRING HANDLING

    This section presents some of the most common functions used to manipulate strings in Python. It may be stated here that, although all the following tasks can be done without the predefined functions with varying degree of ease, the presence of these functions help the programmer to do the task easily and efficiently.

    Moreover when one crafts and implements one’s version of a function, the implementation may not be efficient in terms of time or space or both. However, while crafting these predefined functions in Python the issue related to memory and time should be handled. Let us now have a look at the names, meanings, and usage of the pre-defined functions in Python.

    ELEMENTS OF OBJECT-ORIENTED PROGRAMMING

    The following discussion briefly outlines the principles of object-oriented programming. The concepts encapsulation, data hiding, and polymorphism are all discussed in this section.
    • Class
    A class is a real or a virtual entity, which has relevance to the problem at hand and has sharp physical boundaries. A class can be a real entity. For example, when one develops software for a car wash company, then 'Car', is central to the software and therefore there will be a class called 'Car'. A class can also be a virtual entity. Another example is that when developing a student management system, a 'student' class is crafted which is a virtual entity. In both the examples, the entity was crafted as it was important to the problem at hand.

    The example of the 'student' class can be taken further. The class will have attributes, which are needed in the program. The selection of attributes will decide on the physical boundaries of the class. The fact of the matter is we will not be needing unnecessary details like the number of cars a student has or where he went last evening in an educational institute for which we are making the student management system, so there is no point storing those details.

    إرسال تعليق