Python Programming Tutorial for Beginners with Example

The Python Interpreter

>>> 2+4
>>> 2/4
>>> 2.0/4
>>> 3 + 5
>>> 3+5
>>> x = 12 # x is a pointer to integer value 4
>>> print x - 2
>>> num_of_guys = 45
>>> num_of_gals = 20
>>> diff = num_of_guys - num_of_gals
>>> print "Hello World"

Mathematical Operations

>>> 2 + 5 (Left to Right)
>>> 2 * 5 (Left to Right)
>>> 5 ...

How to Set Up Redis on a Server and its Use Cases


In this post lets talk about using redis. Redis is an in memory key value store. Unlike other NoSQL engines, it has its own Data Structures, that makes it outshine the others. Redis is really fast, take a look at this benchmarking report. If you are interested in comparison ...

Yet another Python MetaClass Tutorial

No python weblog, feels complete without an article on metaclasses. In this post lets talk about the black magical Meta Classes in Python. Before we begin, let me talk a little about one of my most favourite word - Meta. For example metadata means data about the data, similarly classes that ...

tutorial on migrating and faking django database with south

In this post lets talk about South. The post assumes, you already have got started with django, and want to get better with the tools of trade. South helps you with database migrations. Unlike rails, django does not come up with an in built schema alteration/mutation tool. South is ...

JavaScript Test Driven Development with QUnit - Tutorial

In this post lets talk about testing your javascript code. There are couple of libraries that help you test your javascript. For Unit Testing JavaScript, QUnit is one of the most popular, easy to use Framework. It is maintained by the jQuery team. QUnit comes tested by QUnit. Lets address ...

Behavior Driven Development in Python with Lettuce

Easier Testing of django models and forms

In this post lets talk about, making lives easier while testing django models and forms. This is the fourth article in our Test Driven Development Series. Until now, we have already talked about intro to TDD, basic testing django views and models and functional testing with selenium.

Testing Django Models ...

An introduction to unit testing django views and models

This is the third article in our series of Test Driven Development. In this post we will see, testing different aspects of django viz. views, basics of models. Middlewares & Templatetags, Advanced Models and Forms require a different article altogether, so they are not being covered in detail in this post ...

An intro tutorial to test driven development in python/django

Welcome to the second article of our Test Driven Development Series. Similar to all our articles it kind of tries to simplify the getting started, this time with unit testing in pyton/django. It tries to save you from the pain, of going through the docs, getting lost at them ...

Functional Testing with Selenium WebDriver and Selector in Python

In this post, we shall be exploring functional/integration/system testing via selenium in Python. The post assumes, that you have a basic understanding of the terminologies of test driven development, you know basic python. The post does not assume any basic knowledge of selenium and is aimed to get ...