In this article we show 2 ways of replacing characters in a string using python Example 1 This first example lets the user enter a test string, a character to …
maxguy71
-
In this article, we will show you how to add two lists in python. There are a few ways to add two lists of elements in python. We will show …
-
In this article, we show you how to capitalize the first letter of each word of a string in python. We will show you 2 examples of how to do …
-
In this example we will get a length of a list in python Example 1 In this Python list length example, we declare an empty one. We then use the …
-
In this example we use python to check if two strings are anagrams or not. Example 1 In this example we use the sorted method which sorts the two strings …
-
In this example we will show you how to convert a string to uppercase or lowercase We will convert the String to Lowercase using the lower function We will convert …
-
Another common task with strings is to concatenate them , join them together Example 1 In the following example we ask the user for 2 strings and then concatenate them. …
In this example we show you 2 examples of finding the smallest and largest numbers in a list Example 1 In this example we use the min and max functions …
In this example we use python to count the character frequency of a string Example 1 In this Python example, the for loop iterates through the whole string that the …