Flattening a list in Python

Recently I saw a question to flatten a list and I thought of solving it in Python. Unfortunately there isn’t...

Implementing a Queue in Python.

Queue: In computer science, a queue is a particular kind of abstract data type or collection in which the entities...

Ansible playbooks to deploy a Django project - Part 1

Two weeks back, I started learning Django. I built a polls app by following the tutorial from Django’s website1. Later...

Useful Git commands - Part 1

So I have been using Git for a while now. Considering it’s the only version control system I know, I...

Binary search tree in Python with simple unit tests.

Last week I was reading an article about testing in Python.1 It explained about various testing frameworks available in Python(unittest,...

Implementing a Stack in Python.

In previous posts, I have implemented a binary search tree and a singly linked list. In this post I will...

Learning Ansible - Installing packages on a remote server.

Recently I bought a droplet from DigitalOcean. Luckily I also got the first two months free of charge. Now the...