Latest Posts From Safa Mulani

Python Count() Function

How to Use the Python count() Function

Hi, Folks! In this article, we will be focusing on Python count() method with Strings and Lists. 1. Python count() function with Strings Python String has got an in-built function – string.count() method to count the occurrence of a character or a substring in the particular input string. The string.count() method accepts a character or […]

Ways To Copy A Python List

Ways to Copy a List in Python

In this article, we will be understanding various techniques to copy a list in Python. Python List is a data structure to store and manipulate the data values. Technique 1: The extend() method to copy a list in Python Python built-in extend() method can be used to copy the elements of a list to another […]

Python Dictionary

4 Easy Techniques to Check if Key Exists in a Python Dictionary

In this article will be focusing on the 4 ways to Check if Key Exists in a Python Dictionary. A Python Dictionary is basically a data structure wherein the data items are stored in a key-value pair. Technique 1: ‘in’ operator to Check if Key Exists in a Python Dictionary Python in operator along with […]

Python Delete Dictionary

Ways to Delete a Dictionary in Python

Want to delete a dictionary in Python? The Python Dictionary is a data structure used in Python that accepts elements in key-value pair form. In this article, we will be understanding different Ways of deleting a key-value pair from a Python Dictionary. The dict.clear() to delete a dictionary in Python Python has in-built clear() method […]

Python String Join() Method

Python String join() function

In this article, we will have a look at the Python String join() function. As the name suggests, it is used to join strings together and works for the data of string type. Understanding Python string join() method Python String has various in-built functions to deal with the string type of data. The join() method […]

Merge Sort

Understanding Merge Sort in Python

In this article, we will be having a look at an efficient sorting algorithm – Merge Sort in Python. The merge sort algorithm is used to sort existing data in an ascending or descending order. Let’s look into how we can make use of the algorithm and implement it in Python. Working of Merge Sort […]