Python

05 May

Learning Python - Part 3

in How To, Programming, Python, Scripting

I've been rather busy lately, so I haven't managed to write another Python article, but I finally squeezed out some time for part 3. If you haven't read them yet, I highly recommend reading parts one and two first.

Operators and Expressions

Most of the lines of code you write will be expressions. An expression in a programming sense is similar to an expression in a mathematical sense. It is basically a line of code that performs an action and has an outcome.

Some examples of expressions are as follows:

02 Mar

Learning Python - Part 2

in Article, Development, Open Source, Programming, Python, Software

In the first lesson we introduced Python, the CPython interactive interpreter, and wrote a very simple program. This lesson we'll look at choosing a good editor, rewriting our previous program into a script and Python's basic types.

21 Feb

Learning Python: Part 1

in Article, Development, Open Source, Programming, Python

Code

Python is a well known and increasingly popular programming language, used in both quick scripts designed for a particular task and large complicated applications. Python is also increasingly being used in web applications, thanks to the recent proliferation of frameworks like Pyramid, Django, WebCore, Flask, and others.

Over the next few weeks I will be introducing the language, how to program in it, and some popular frameworks and toolkits used to develop applications. I will be basing these tutorials on a really great, free eBook called A Byte of Python (make sure you download the version for Python 2.x).

Copyright © 2009-2011 Raoul Snyman. All original content is licensed under the CC BY-SA license.