Skip to content

Tag Archives: Python string-programs

Given a byte string. The task is to write a Python program to convert this byte of string to a list of integers.  Method 1:… Read More
In this article, we are going to discuss the conversion of ASCII to Binary in the Python programming language. Method 1: Using binascii module Binascii… Read More
In this article, we will discuss how to format a string using a dictionary in Python. Method 1: By using str.format() function The str.format() function… Read More
In this article, we are going to see the conversion of Binary to ASCII in the Python programming language. There are multiple approaches by which… Read More
Given an input string, our task is to write a Python program to sort the words present in the string in alphabetical order. Examples: Input… Read More
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