Introduction to Python3

Python is a high-level scripting language that combines interpreted, compiled, interactive, and object-oriented.

Python is designed to be highly readable. Compared with other languages, English keywords are often used, and some punctuation marks in other languages. It has a more distinctive grammatical structure than other languages.

  • Python is an interpreted language: this means that there is no compilation part of the development process. Similar to PHP and Perl languages.
  • Python is an interactive language: that means, 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 a programming technique in which code is encapsulated in objects.
  • Python is a language for beginners: Python is a great language for beginning programmers, supporting 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 for Mathematics and Computer Science in the Netherlands in the late 1980s and early 1990s.

Python itself has evolved from many other languages, including ABC, Modula-3, C, C++, Algol-68, SmallTalk, the Unix shell, and other scripting languages, to name a few.

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

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

Python 2.0 was released on October 16, 2000, adding full garbage collection and Unicode support.

Python 3.0 was released on December 3, 2008, and this version is not fully compatible with previous Python source code. However, many new features were later ported to older Python 2.6/2.7 versions as well.

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

Python 2.7 was identified as the last Python 2.x release, which supported part of Python 3.1 syntax in addition to Python 2.x syntax.


Python Features

  • 1. Easy to learn: Python has relatively few keywords, simple structure, and a well-defined syntax, making it easier to learn.
  • 2. Ease of reading: Python code is more clearly defined.
  • 3. Ease of Maintenance: The success of Python is that its source code is fairly easy to maintain.
  • 4. An extensive standard library: One of Python’s greatest strengths is its rich library, cross-platform, and good compatibility on UNIX, Windows and Macintosh.
  • 5. Interactive mode: With the support of interactive mode, you can input the language from the terminal to execute the code and get the result, interactive test and debug code snippets.
  • 6. Portable: Based on its open source nature, Python has been ported (that is, made to work) to many platforms.
  • 7. Extensible: If you need a critical piece of code that runs fast, or 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. Databases: Python provides interfaces to all major commercial databases.
  • 9.GUI programming: Python supports GUI 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 gain “scripting” capabilities.

Python application

  • Youtube – Video social networking site
  • Reddit – social sharing site
  • Dropbox – file sharing service
  • Douban.com – Data database website for books, records, movies and other cultural products
  • Zhihu – a question and answer site
  • Nutshell – a pan-tech themed website
  • Bottle – Python micro web framework
  • EVE – The online game EVE is heavily developed with Python
  • Blender – Open source 3D drawing software using Python as modeling tool and GUI language
  • Inkscape – An open source SVG vector graphics editor.