Skip to content

Tag Archives: Python string-programs

Given an input string with lowercase letters, the task is to write a python program to identify the repeated characters in the string and capitalize… Read More
Given a String of date of format YYYYMMDD, our task is to compute the life path number.  Life Path Number is the number obtained by… Read More
Given a Strings list and substring, the task is to write a Python program to extract all the strings that has all the characters that… Read More
Given a string, the task is to write a Python program to extract the acronym from that string. Examples: Input: Computer Science Engineering Output: CSE… Read More
Given a list with string elements, the task is to write a Python program to return True if all list elements are sorted. The point… Read More
Given a list containing only string elements, the task is to write a Python program to extract all the strings which have characters from another… Read More
Given a list that contains only string elements the task here is to write a Python program to check if all of them are numeric… Read More
Given a Strings List, the task here is to write a python program that can extract all the strings whose prefix match any one of… Read More
In this article, the task is to write a Python program to repeat M characters of string N times. Method 1: Define a function that… Read More
Given a list of names, the task is to write a Python program to sort the list of names by their last name. Examples: Input:… Read More
Given a string ‘s’ and char array ‘arr’, the task is to write a python program to check string s for characters in char array… Read More
Given a String, write a Python program to remove all the words with K length.  Examples: Input : test_str = ‘Gfg is best for all… Read More
Giving a String, write a Python program to find maximum run of uppercase characters. Examples: Input : test_str = ‘GeEKSForGEEksISBESt’ Output : 5 Explanation : ISBES is… Read More
Given the Strings list, write a Python program to increment strings that are numeric by K. Examples: Input : test_list = [“gfg”, “234”, “is”, “98”,… Read More
Given the String list, write a Python program to count pairs of reverse strings. Examples: Input : test_list = [“geeks”, “best”, “tseb”, “for”, “skeeg”] Output :… Read More