The following post deals with pattern search in a string i.e looking for the occurrences of a substring in a given string and displaying the starting index. It uses the naive metho.... Read More
Searching for a string pattern in the main string using the naive algorithm may be time-consuming and inefficient. The following post deals with a slightly more efficient method .... Read More
This post provides a way of generating or raising and error based on the user’s conditions in contrast to the common errors raised by the compiler/interpreter. We call such e.... Read More
This post discusses how to add nodes to a linked list as well as display the contents of a linked list in Python. While linked lists are mainly associated with pointers, a concept .... Read More
In this tutorial, we are going to learn how to reverse a given number within two lines of code in Python using the type casting method. How to reverse a number (optimum solution) i.... Read More
In this article, we will learn how to change background color in Matplotlib with Python. we need some basic concepts of two python module named as:- Matplotlib Numpy Actually, we a.... Read More
In this tutorial, we will learn how to check the given number is the power of 2 or not in python programming. A positive number N is given by the user and we have to check whethe.... Read More
This post deals with one of the most inefficient sorting algorithms in programming – the Bogo Sort in Python! The name itself is derived from the “Bogus Sort” T.... Read More