Introduction to Python3


Python is a high-level scripting language that combines interpretation, compilation, interactivity, and object-oriented.

Python is designed to be very readable. Compared with other languages, English keywords are often used, and some punctuation marks of other languages have a more distinctive grammatical structure than other languages.

  • Python is an interpreted language: This means that there is no compilation part in the development process. Similar to PHP and Perl languages.

  • Python is an interactive language: This means that you can execute code directly after a Python prompt >>> .

  • Python is an object-oriented language: This means that Python supports an object-oriented style or programming technique where the code is encapsulated in an object.

  • Python is a language for beginners: Python is a great language for junior programmers. It supports a wide range of application development, from simple word processing to WWW browsers to games.



Python Development History

Python was designed by Guido van Rossum at the National Institute of Mathematics and Computer Science in the Netherlands in the late 1980s and early 1990s.

Python itself is also developed by many other languages, including ABC, Modula-3, C, C++, Algol-68, SmallTalk, Unix shell and other scripting languages, etc.

Like the Perl language, the Python source code also follows the GPL (GNU General Public License) agreement.

Python is now maintained by a core development team, and Guido van Rossum still plays a vital role in guiding its progress.

Python 2.0 was released on October 16, 2000, which added full garbage collection and supports Unicode.

Python 3.0 was released on December 3, 2008. This version is not fully compatible with the previous Python source code. However, many new features were later ported to the old Python 2.6/2.7 version.

Python 3.0 version is often referred to as Python 3000, or Py3k for short. Compared to earlier versions of Python, this is a major upgrade.

Python 2.7 is determined to be the last Python 2.x version. In addition to supporting Python 2.x syntax, it also supports part of Python 3.1 syntax.



Python Features

  • 1. Easy to learn: Python has relatively few keywords, simple structure, and a clearly defined grammar, making it easier to learn.

  • 2. Easy to read: Python code definition is clearer.

  • 3. Easy to maintain: Python's success, it depends on its source code is fairly easy to maintain.

  • 4. An extensive standard library: One of the biggest advantages of Python is its rich library, cross-platform, and compatible with UNIX, Windows and Macintosh.

  • 5. Interactive mode: The interactive mode is supported, you can enter the execution code from the terminal and get the language of the result, interactive testing and debugging code snippets.

  • 6. Portability: Based on its open source characteristics, Python has been ported (that is, to make it work) to many platforms.

  • 7. Extensible: If you need a key code that runs fast, or you want to write some algorithms that you don't want to open, you can use C or C++ to complete that part of the program, and then call it from your Python program.

  • 8. Database: Python provides interfaces to all major commercial databases.

  • 9. GUI programming: Python supports GUI that can be created and ported to many system calls.

  • 10. Embeddable: You can embed Python into a C/C++ program, allowing users of your program to have the ability to "scripts".


Python Applications

  • Youtube - video social networking site

  • Reddit - social sharing site

  • Dropbox - file sharing service

  • Bottle - Python micro web framework

  • EVE - Online game EVE uses Python extensively for development

  • Blender - Open source 3D drawing software using Python as a modeling tool and GUI language

  • Inkscape - an open source SVG vector graphics editor.

  • ...