Showing posts with label python notes. Show all posts
Showing posts with label python notes. Show all posts

what is python

                what is python

                                                   For those looking for buzzwords, Python is a high-level, interpreted, reflective, dynamically-typed, open-source, multi-paradigm, general-purpose programming language. I could explain each of those terms in detail, but in the end the result would still not convey what makes Python programming different from other languages. There is no one thing in Python that is not found in other languages, but it is the elegant design and combination of these features into a single package that makes Python such a pleasure to use.
                    Python is sometimes described as a scripting language, for the simple reason that thousands of working programmers daily use the language in this fashion. That is, they use Python as a tool to quickly and easily glue together software applications and components written in many different languages. But such a categorization is far too narrow, and Python can justly be described as a general-purpose language, one that can you can use for almost any programming task you would like to perform.
                      This is not to say that Python is the only programming language you will ever need or will ever learn. A working computer scientist should know how to use many different tools, and that means he or she should have an appreciation of many different types of language. For example, because Python is interpreted, the resulting programs are often not as fast as those written in lower-level languages, such as C or C++.
                     On the other hand, programs are much easier to write than they are in C. So there is a trade-off, anengineering compromise of the type common in computer science. Is less time in execution of the final program worth spending more time in development and debugging? For the beginning student, and in fact for the vast majority of computer programs, the answer is clearly no. (Another way to express this trade-off is to ask, “whose time is more important, your time or the computer’s?”) Low-level languages such as C have their place, but only for the small group of computer programs for which ultimate execution time is critically important. You may eventually work on such systems, but not in your first programming course.
              Another important category of programming languages are those tied to a specific application. A good example of this category is the language PHP, a programming language used to create interactive web pages. (See www.php.org). A general-purpose language, such as Python, cannot hope to be as easy to use in this application area. But PHP is extremely clumsy to use for purposes other than web pages. If, or when, you start extensive work in such an application area you will want to learn how to use these tools


Python's feature

Python's feature highlights include:
Ø  Easy-to-learn: Python has relatively few keywords, simple structure, and a clearly defined syntax. This allows the student to pick up the language in a relatively short period of time.
Ø  Easy-to-read: Python code is much more clearly defined and visible to the eyes.
Ø  Easy-to-maintain: Python's success is that its source code is fairly easy-to-maintain.
Ø  A broad standard library: One of Python's greatest strengths is the bulk of the library is very portable and cross-platform compatible on UNIX, Windows, and Macintosh.
Ø  Interactive Mode: Support for an interactive mode in which you can enter results from a terminal right to the language, allowing interactive testing and debugging of snippets of code.
Ø  Portable: Python can run on a wide variety of hardware platforms and has the same interface on all platforms.
Ø  Extendable: You can add low-level modules to the Python interpreter. These modules enable programmers to add to or customize their tools to be more efficient.
Ø  Databases: Python provides interfaces to all major commercial databases.
Ø  GUI Programming: Python supports GUI applications that can be created and ported to many system calls, libraries, and windows systems, such as Windows MFC, Macintosh, and the X Window system of Unix.
Ø  Scalable: Python provides a better structure and support for large programs than shell scripting.
Apart from the above mentioned features, Python has a big list of good features, few are listed below:
Ø  Support for functional and structured programming methods as well as OOP.
Ø  It can be used as a scripting language or can be compiled to byte-code for building large applications.
Ø  Very high-level dynamic data types and supports dynamic type checking.
Ø  Supports automatic garbage collection.
Ø  It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.