Recently I've been playing around with Google Storage, so I dusted off a Python book that had been gathering dust and read through it. Together with the documentation on Google Code, I wrote a small automatic backup program. It's still very simple, so I won't publish it yet. But writing it made me realize that Python is a fairly easy programming language. In terms of ease of learning and rigor, it's about on par with VB. In terms of verbosity, though, Python wins over VB (I mean VB is the wordier one XD). For example, an if statement in VB has to be written as if.....then.......end if, while in Python you just write if....: to get started. Indentation also matters a lot in Python. If the indentation is wrong, the program won't run, because the interpreter uses indentation to decide where selection structures, loops, and so on end. Personally, I'd recommend Python to beginners, since it lets you write very neat code ~

However, as I mentioned earlier, Python is just as loose as VB, or to be blunt, even looser than VB… It doesn’t force you to declare variables or types. VB6 didn’t force declarations either, but VB.NET does XD. Even so, plenty of big companies use it to develop software. For example, Google has many programs written in Python, and GAE (Google App Engine) also requires Python or Java for development. So don’t think it’s weak!! Also, according to TIOBE’s statistics, Python has entered the top four most widely used programming languages, beating PHP, and its growth rate is quite high too.

By the way, the latest version of Python is Python 3, which some people call Python 3k or Python 3000. However, Python 2.x code is more common online. GAE, for example, is developed with Python 2.x. The differences between Python 3.x and 2.x are quite significant, so before you start learning Python, decide which version you want to learn. Don’t try to learn both at once.

Python Info:

Python Features:

  • Uses indentation to determine where loops and selection structures end
  • Can be combined with C, Java, and .NET for development; the most common implementation on the market is CPython
  • No need to declare variables or types
  • Concise syntax

Installing Python

Below I'll cover Python 3.0. Installing Python 2.x works in a similar way. Also, if you're installing Python on Linux, don't use yum. From my experience, the Python version that yum installs is very old, something like 2.4....
  1. First, go to the Python download page and download the installer. The official site offers interpreters for several operating systems, including Windows, Mac, and Linux. Here I’ll only cover installing on Windows.

  1. Run the installer

  1. This step asks whether you want to install Python for all users of this computer or only for your own account. If your computer is shared by the whole family and you don’t want them to know which programs you use, choose 【Install just for me】→【Next】

  1. This step sets where Python will be installed. I recommend keeping the default, and make a note of the installation location.

  1. Just click 【Next】

  1. Installing, please wait~

  1. Installation complete~

  1. Now go to the folder where Python was just installed, the same path you noted in step 4.

  1. Run 【python.exe】 and you can start writing code~