Tag Archives: Python string-programs

Given a String, the task is to write a Python program to compute maximum scoring words i.e words made of characters with a maximum positional… Read More
Given a String, the task is to write a Python program to replace occurrences by K of character at 1st index, except at 1st index.… Read More
Given a String, the task is to write a Python program to convert its characters to uppercase randomly. Examples: Input : test_str = 'geeksforgeeks' Output… Read More
Given a list, the task is to write a Python program to mark the duplicate occurrence of elements with progressive occurrence number. Input : test_list… Read More
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