# Category Archives: Python Programs

## Python | Ways to split strings on Uppercase characters

Given a string, write a Python program to split strings on Uppercase characters. Let’s discuss a few methods to solve the problem. Method #1: Using… Read More »

## Python | Ways to determine common prefix in set of strings

Given a set of strings, write a Python program to determine common prefix from a set of strings. Given below are a few methods to… Read More »

## Python | Ways to find all permutation of a string

Given a string, write a Python program to find out all possible permutations of a string. Let’s discuss a few methods to solve the problem.… Read More »

## Python | Ways to split strings using newline delimiter

Given a string, write a Python program to split strings on the basis of newline delimiter. Given below are a few methods to solve the… Read More »

## Python | Splitting operators in String

Sometimes we have a source string to have certain mathematical statement for computations and we need to split both the numbers and operators as a… Read More »

## Python | Split string on Kth Occurrence of Character

Many problems of split has been dealt with in past, but sometimes, one can also encounter this problem in which we need to split the… Read More »

## Python | Ways to count number of substring in string

Given a string and a substring, write a Python program to find how many numbers of substring are there in the string (including overlapping cases).… Read More »

## Python | Ways to check if given string contains only letter

Given a string, write a Python program to find whether a string contains only letters and no other keywords. Let’s discuss a few methods to… Read More »

## Python | Check if substring is part of List of Strings

Many problems of substrings have been dealt with many times. There can also be such problem in which we require to check if argument string… Read More »

## Python | Mean Squared Error

The Mean Squared Error (MSE) or Mean Squared Deviation (MSD) of an estimator measures the average of error squares i.e. the average squared difference between… Read More »

## Python | Ways to convert Boolean values to integer

Given a boolean value(s), write a Python program to convert them into an integer value or list respectively. Given below are a few methods to… Read More »

## Python | Ways to find nth occurrence of substring in a string

Given a string and a substring, write a Python program to find the nth occurrence of the string. Let’s discuss a few methods to solve… Read More »

## Python | Convert list of strings to space separated string

Given a list of strings, write a Python program to convert the given list of strings into a space-separated string. Examples: Input : [‘geeks’, ‘for’,… Read More »

## Python | Ways to convert hex into binary

Conversion of hex to binary is a very common programming question. In this article, we will see a few methods to solve the above problem.… Read More »

## Python | Ways to convert list of ASCII value to string

Given a list of ASCII values, write a Python program to convert those values to their character and make a string. Given below are a… Read More »