Category Archives: Python Programming

Few notes on Python Programming..

Isolating Your System with Linux Namespaces

With the advent of tools like Docker, Linux Containers, and others, it has become super easy to isolate Linux processes into their own little system environments. This makes it possible to run a whole range of applications on a single real Linux machine and ensure no two of them can interfere with each other, without […]
Read More »

An Introduction to Mocking in Python

How to Run Unit Tests Without Testing Your Patience More often than not, the software we write directly interacts with what we would label as “dirty” services. In layman’s terms: services that are crucial to our application, but whose interactions have intended but undesired side-effects—that is, undesired in the context of an autonomous test run. […]
Read More »

Concurrency and Parallelism using Python

Discussions criticizing Python often talk about how it is difficult to use Python for multithreaded work, pointing fingers at what is known as the global interpreter lock (affectionately referred to as the “GIL”) that prevents multiple threads of Python code from running simultaneously. Due to this, the threading module doesn’t quite behave the way you […]
Read More »

Nested IF statements in Python

In many cases we need want to add additional conditions to an existing condition to make or validate the condition as true. To resolve this situation we can use nested IF conditions in Python. In nested IF statements we can have IF , ELIF , ELSE construct within a IF , ELIF , ELSE statement. […]
Read More »

ELIF in Python

In my earlier post I have shown how we use conditional statements on Python and now just to extend the topic with else if conditions .  Now we will see how we can use else if condition in python. To demonstrate this we will take a very simple condition of if statement and making it […]
Read More »

Conditional statements in Python

Reference taken from one of my article that was published on experts exchange. The purpose of this article is to demonstrate how we can use conditional statements using Python. Conditional statements for testing using Python is similar to any other programming language in that we write if and else statements to get the desired results […]
Read More »

Lists in Python

Introduction of Lists in Python:There are six built-in types of sequences. Lists and tuples are the most common one. In this article we will see how to use Lists in python and how we can utilize it while doing our own program. In general we can also say like the place holder where a number […]
Read More »

Upgrade Python 2.7.6 to Python-2.7.10 on Linux Mint OS

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once you download and install Linux Mint 17.2, Python software is installed by […]
Read More »

Sequence in Python

This post is been taken from my article which is published by Experts-Exchange. Sequence is something that used to store data in it in very simple words. Let us just create a list first. To create a list first of all we need to give a name to our list which I have taken as […]
Read More »

Dictionaries in Python

This post is been taken from my article which is published by Experts-Exchange. Dictionaries contain key value pairs. In python we can define dictionaries using dictionary construct. First of all we need to define a dictionary: Syntax: <>  ={<> : <> , <> : <>, …<> : <>  } From the above syntax the value […]
Read More »