Tapas Kumar Ghosh has Published 150 Articles

Filter key from Nested item using Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 12:36:01

415 Views

Python can extract a specific value from a complex data structure that has nested dictionaries or lists by filtering a key from a nested item. The key is a unique identifier for a certain value inside the nested item. Based on this problem statement it has various application domains such ... Read More

Python - Find Minimum Pair Sum in list

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 12:34:34

232 Views

The Minimum pair sum is defined by finding the smallest possible sum of two numbers taken from a given list of numbers. It can be used to solve challenges when minimizing the total of two elements is important, such as reducing the cost, distance, or time necessary for a certain ... Read More

Find the Index of Maximum Item in a List using Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 12:29:42

8K+ Views

In Python, the index of maximum item refers to a specific index in which the item will be greater than all the elements of the list. In Python, we have some built−in functions len(), max(), series(), idxmax(), and index() that can be used to find the index of maximum item ... Read More

How to change Tkinter Window Icon

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 12:25:28

6K+ Views

The Tkinter is a popular GUI(Graphical User Interface) library in Python that provides a simple and easy way to create a GUI application. In Python, we have some built−in functions such as Tk(), PhotoImage(), mainloop(), title(), and, wm_title() will be used to change the Tkinter Window Icon. Syntax The following ... Read More

Python - Inter Matrix Grouping

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 12:22:26

61 Views

The Inter Matrix Grouping is the set of two different lists where the sublist of first element will be considered to be common matches and if the matches are found it makes the first element as key in the dictionary, and the rest two elements are set for matrix grouping. ... Read More

How to Iterate through a List without using the Increment Variable in Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 12:18:22

116 Views

The iteration is a simple programming algorithm to take some steps to iterate all the elements present in a list. The main feature of iteration is to repeat the code of block multiple times. In Python, we have some built−in functions such as enumerate(), list(), map(), and, lambda will be ... Read More

How to Initialize an Empty Array of given Length using Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 12:15:07

8K+ Views

An empty array consists of either a null value or no element. The empty array is very special to programming when the programmer uses the condition to perform specific tasks. In Python, we have some built−in functions such as empty(), append(), range(), and, extend() will be used to Initialize an ... Read More

Initialize a Dictionary with Custom Value list in Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 12:13:24

129 Views

The dictionary is defined by storing the key with value pair whereas a custom value list in the dictionary means the list connected with all the key elements can be modified or changeable according to conditions. This gives an efficient approach to a program that users can add, modify, or ... Read More

Iterating through a range of dates in Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 12:10:55

3K+ Views

The range of dates is defined by the starting date, ending date, and all dates in between. In Python, we have some built−in functions such as datetime.date(), range(), timedelta(), and, delta() will be used to iterate through a range of dates. Let’s take an example of this. The Starting Date, ... Read More

How to show or hide labels in Pygal

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 12:07:38

72 Views

The Python module named Pygal is a data visualization library that creates SVG graphs in various styles. This type of graph generally creates a highly interactive plot that users will easily understand. For example− line(), pie(), histogram(), etc. In Python, we have some built−in functions such as x_labels(), add(), ... Read More

Advertisements