Skip to content

Tag Archives: Python string-programs

Given a string that has set of words and spaces, write a program to move all spaces to front of string, by traversing the string… Read More
Given a string of size n, write functions to perform following operations on string. Left (Or anticlockwise) rotate the given string by d elements (where… Read More
Given few lines of code inside a string variable and execute the code inside the string. Examples:   Input: code = """ a = 6+5 print(a)""" Output:… Read More
We are given a string and we need to reverse words of a given string Examples: Input : str =" geeks quiz practice code" Output… Read More
Given a string, write a python function to check if it is palindrome or not. A string is said to be palindrome if the reverse… Read More

Start Your Coding Journey Now!