In this example, you will learn to remove duplicate elements from a list. Example 1: Using set() list_1 = [1, […]

In this example, you will learn to remove duplicate elements from a list. Example 1: Using set() list_1 = [1, […]
In this example, you will learn to count the number of occurrences of a character in a string. Example 1: […]
In this example, you will learn to compute all the permutation of the string. Permutation is the method of selecting […]
In this example, you will learn to capitalize the first character of a string. Two strings are said to be […]
In this example, you will learn to check if two strings are anagram. Two strings are said to be anagram […]
In this example, you will learn to count the number of digits present in a number. Example 1: Count Number […]
In this example, you will learn to iterate through two lists in parallel. Example 1: Using zip (Python 3+) list_1 […]
In this example, you will learn to trim whitespace from a String. Example 1: Using strip() my_string = ” Python […]
In this example, you will learn to convert two lists into a dictionary. Example 1: Using zip and dict methods […]
In this example, you will learn to create a long multiline string. Example 1: Using triple quotes my_string = ”’The […]