Inorder traversal Python of a Binary Tree

Inorder traversal using python of a tree is as pretty easy if you know the concepts of dictionaries and classes. In this article, we will talk about the Inorder traversal Python of a Tree. Here we will be talking about binary trees. Tree and its inorder traversal using python. Binary tree is the tree where

Breadth-first search in a graph with python

In Implementing graph with python and how to traverse we learn how we can implement graph with python. In this article, we are going to talk about the breadth-first search and how we can achieve it using python. If you haven’t read about implementing a graph with python read it here. If you have read

Implementing graph with python and how to traverse.

When we talk about algorithms, graphs are one of the most important parts to know about. In this session, we will talk about graphs and implementing graph in python. What is a graph? A graph is a data structure consists of nodes and edges. It is nonlinear and can form very complex structures. If you

Let us build a Youtube Music Desktop App using Electron

We all love music and we all have used Youtube to find good music, but the problem is that even though Youtube is so popular, there isn’t any desktop app for Youtube while its competitors like Spotify or Pandora has full-fledged desktop apps. So, today we will build a desktop app for Youtube using Electron

Log parsing in python. Read how you can do it.

While working with Nginx or any other server there is sometimes the need to parse the logs and see the consolidated view. This view can help you with identifying the things that are wrong like too many 5xx. Let’s have a look at log parsing in python. In this article, we will take nginx default

How to start python: Basic Tooling in Python

When we are talking about how to start python we must understand the basic tools that will help you in writing better code debugging and dependency management. How to start python projects. To start any project it is always recommended to create the project in its own environment. This means that anything that is installed

Generators in Python

Generators are just like normal functions, what makes functions generators in yield statement instead of the return statement. Also since you starting to read about generators, you should have a look at Iterators in python and how it works.Lets read about generators in python. What is yield? Yield is a keyword that is used to

Best practices for programming

In this article, we will talk about best practices for programming in any language. Add readability to your code as much as possible. The function name should tell what this function does. The function should be visible in one screen. You should not scroll to view the whole function. Try to write pure functions instead

Iterators in python and how to create them

Generally, iterators are used to iterate over a list of objects. We use iterators without knowing we are using it. Let’s understand Iterators in python and look at the below example a = [1,2,4,5,6,7,8] for i in a: print(i) Here we have used iterator behind the scenes of for-in to loop over a list. How to create

Sieve of eratosthenes in python for Generating Prime numbers

Prime numbers are very important. Most of the modern day encryption decryption relies heavily on these prime numbers. Thus generating these prime number is a good task in itself. In this article we will see how we can generate list of prime number using sieve of Eratosthenes. What is sieve of Eratosthenes? To find all the prime