Skip to content

Tag Archives: Python string-programs

In the telecommunication and computer domain, control characters are non-printable characters which are a part of the character set. These do not represent any written… Read More
Given a List of strings, the task is to write a Python program to sort list by the number present in the Strings. If no… Read More
Given a list of strings, the task is to write a Python program to get a percentage share of each word in the strings list.… Read More
Given a string, the task is to write a Python program to find all combinations of overlapping substrings of a string and store it in… Read More
Given Strings with words, the task is to write a Python program to split each word into two halves on the basis of assigned percentages… Read More
Given a string, the task is to write a Python program to extract overlapping consecutive string slices from the original string according to size K. … Read More
Given a substring K, the task is to write a Python Program to find the repetition of K string in each consecutive occurrence of K.… Read More
Given a string of words. The task is to write a Python program to replace the given word irrespective of the case with the given… Read More
Given a string and two substrings, write a Python program to extract the string between the found two substrings.  Input : test_str = “Gfg is… Read More
Given a string, the task is to write a Python program to extract date from it. Input : test_str = "gfg at 2021-01-04" Output :… Read More
Given a string of characters with digits embedded in it. The task is to write a Python program to extract all the numbers that are… Read More
Given a string, the task is to write a Python program to get all possible slices for K number of slices. Input : test_str =… Read More
Given a string list, our task is to write a Python Program to check all strings are disjoint from one another. Example: Input : test_list… Read More
Given a string, the task is to write a Python program to replace every Nth character in a string by the given value K. Examples:… Read More
Given a String, our task is to write a Python program to extract the start and end index of all the elements of words of… Read More