python string
How to Convert String Representation of List to List in Python?
Many times in the project, the list is stored in the form of a string. One of the use cases was when I was working on a Django project, I had to save the list of selected...
Python Program to Reverse Each Word in The String / Sentence
In this tutorial, we are reversing each word in the string or sentence. We are not reversing the complete sentence. This question is asked in many of the interviews. Even...
4 Python String Formatting Every Python Developer should Master
Coming so far with programming, we know, the string is a set of characters. And no doubt, it is one of the most useful data types in any programming language. What is Python...
How to Get all the Permutations of String in Python using itertools?
Till now I have shared many Python programming examples. I am little surprised as I missed to write about permutations even though it is very popular. For instance, you have to...
How to Reverse String in Python without using Function?
The string is nothing but a set of characters. The typical way of reverse the string is to swapping the character positions. There is a major disadvantage to it. You have to...