Posts from Python

Construct a String from another String using Suffix Trie in Python

By Manan Kumar

In this tutorial, we are going to take a look at the task of making a string from substrings of another string using a data structure known as Suffix Trie in Python. Specifically, .... Read More

Removing all consonants from a string in Python

By Premkumar Vemula

In this article, we will explore various ways in which we can remove all the consonants from a given string in Python. The simplest way would be to convert a string to a list and r.... Read More

Selective casing in strings in Python

By Premkumar Vemula

In this article, you will learn about how to change the casing of a particular letter in the string in Python. There are quite a few ways to do it. We can directly use the inbuilt .... Read More

Data Analysis for multidimensional data in Python

By Premkumar Vemula

In this article, we will explore the sequential steps needed to perform while handling the multidimensional data to use it in Machine Learning Algorithm with Python code implementa.... Read More

Find all Bridges of a Graph in Python

By Manan Kumar

This tutorial will show you how to find all bridges of a graph in Python. Before we go forward, let me tell you about bridges of the graph in brief. Bridges of a graph are the edge.... Read More

Check if a string is a valid IP address or not in Python using regular expression

By HIMANSHU ZAVERI

In this post, we will see how we can validate that a given string is a valid IP address (IPv4) or not in Python using regular expression (also knowns as REs or regex or regex patte.... Read More

Determine Whether A Given Undirected Graph is Two-Colorable in Python

By Manan Kumar

What does Two-Colorable mean for a graph? A two-colorable graph is a graph in which each vertex can be assigned a color (out of any two given colors, here we will assume these colo.... Read More

How to replace all ‘0’ with ‘5’ in an input Integer in Python

By Mariya Banatic J

After this tutorial, you will be learned how to replace all ‘0’ with ‘5’ in an input integer in Python. This tutorial will show you 2 simple methods that ar.... Read More