Skip to content

Tag Archives: Python string-programs

In this article given a Strings List, the task is to write a Python program to pad each string with spaces with specified leading and… Read More
Given an array arr[], the task is to combine all the elements in the array sequentially and check if it is a palindrome. Examples: Input:… Read More
Given a string, the task is to write a Python program to print the last word in that string. Examples: Input: sky is blue in… Read More
Given two strings, the task here is to write a python program that can test if they are almost similar. Similarity of strings is being… Read More
Given two strings, the task is to write a python program to join them by every delimiter from delimiter list. Input : test_str1 = ‘Geeksforgeeks’,… Read More
Given a String list, the task is to write a Python program to convert uppercase strings if length is greater than K. Examples: Input :… Read More
Given a String, our task is to write a Python program to check if string contains both numbers and alphabets, not either nor punctuations. Examples:… Read More
Given a matrix, our task is to write a Python program to convert to the matrix, with different delimiters for element and row separation. Examples:… Read More
Given 2 Strings, our task is to check overlapping of one string’s suffix with prefix of other string.  Input : test_str1 = "Gfgisbest", test_str2 =… Read More
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

Start Your Coding Journey Now!