Skip to content

Tag Archives: Python string-programs

Given a string, find all the duplicate characters which are similar to each others. Let’s look at the example. Examples: Input : hello Output :… Read More
Given a sentence containing n words/strings. Remove all duplicates words/strings which are similar to each others. Examples: Input : Geeks for Geeks Output : Geeks… Read More
We are given a list of pattern strings and a single input string. We need to find all possible close good enough matches of input… Read More
A permutation, also called an “arrangement number” or “order”, is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with… Read More
Given a string containing only digits, restore it by returning all possible valid IP address combinations.A valid IP address must be in the form of… Read More
Given a list of characters, merge all of them into a string. Examples: Input : ['g', 'e', 'e', 'k', 's', 'f', 'o', 'r', 'g', 'e',… Read More
Prerequisite : Pattern matching with Regular Expression In this article, we will need to accept a string and we need to check if the string… Read More
Given a string, count the number of vowels present in given string using Sets. Prerequisite: Sets in Python Examples: Input : GeeksforGeeks Output : No.… Read More
In this program, we will be taking a password as a combination of alphanumeric characters along with special characters, and check whether the password is… Read More
In this program, we need to count the number of vowels present in a string and display those vowels. This can be done using various… Read More
In this program, we will try to convert a given string to a list, where spaces or any other special characters, according to the users… Read More
The problem is quite simple. Given a string, we need to replace all commas with dots and all dots with the commas. This can be… Read More
Given two strings, check if s1 is there in s2. Examples: Input : s1 = geeks s2=geeks for geeks Output : yes Input : s1… Read More
Given a name, print the initials of a name(uppercase) with last name(with first alphabet in uppercase) written in full separated by dots. Examples: Input :… Read More
Two strings are given and you have to modify 1st string such that all the common characters of the 2nd string have to be removed… Read More