Tapas Kumar Ghosh has Published 226 Articles

Interconvert Horizontal and Vertical String using Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 11:11:13

2K+ Views

In Python, we have some built−in functions like str(), replace(), split(), strip(), and, len() that will be used to solve Interconvert Horizontal and vertical String. Python allows us to convert strings between horizontal and vertical instructions with simple steps by improving readability, formatting, text manipulation, visual creativity, and programming applications. ... Read More

Finding the First Even Number in a List using Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 11:08:07

476 Views

Python has a variety of built-in methods to modify and analyze the text, that contains to find the specific element within them. To solve this problem statement it will use some built-in functions like next(), filter(), and, lambda to find the first even element from the list. The various applications ... Read More

Find the Common Keys from two Dictionaries in Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 11:01:20

1K+ Views

The dictionary is one of the four data types in Python that doesn’t allow any key duplicates. In this problem statement, we have to create two dictionaries as user input and check the matches for a common key. If key elements are found as common then it prints the result. ... Read More

Convert Matrix to Custom Tuple Matrix in Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 10:57:58

507 Views

In Python, a tuple is one of the four built−in data types that is used to collect the data and this data is represented by round parenthesis i.e.(). Tuple is generally known for multiple collections of items into a single item. In Python, we have some built−in functions like map(), ... Read More

How to Set Border of Tkinter Label Widget

Tapas Kumar Ghosh

Tapas Kumar Ghosh

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

3K+ Views

In Python, Tkinter is GUI(Graphical User Interface) based library that accesses easier and faster ways to build the GUI application. The Tkinter Label Widget will be used to build the border that helps to improve the visibility of the user interface. A Tkinter Label Widget is such type of area ... Read More

How to Set up Multiple Subplots with Group Legends using Plotly in Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 14-Aug-2023 10:51:49

1K+ Views

The multiple subplots are defined by assigning different graph plots. Plotly is a powerful Python library for creating interactive visualizations for data research and presentation. Its capacity to put up multiple subplots, that are independent plots placed within a single figure, is one of its primary characteristics. This feature allows ... Read More

Maximum distance between two points in coordinate plane using Rotating Caliper’s Method

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 24-Jul-2023 10:10:32

252 Views

In C++ we have a predefined function sqrt that returns the square root of any number. The Rotating Caliper’s Method is the technique used to solve the algorithmic or computational geometry. Visual Representation of Rotating Caliper’s MethodThe hand rotation shows the real example of a rotating caliper graph, whenever the ... Read More

Filter Non-None dictionary keys in Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 18:26:27

729 Views

Python dictionary is one of the most popular data types among the following 4 datatypes. The dictionary defines the key with value pair and doesn’t allow the duplicate. The values are either strings or integers. Sometimes, while working on the dictionary it has some empty values that the None value ... Read More

How to Filter list elements starting with a given Prefix using Python?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 18:24:59

1K+ Views

The term prefix is defined by the beginning of the word or letter. In this article, we will learn how to use Python built-in functions like startswith(), filter(), lambda, and len() to Filter list elements starting with a given Prefix using Python. Let’s take an example to understand this ... Read More

Python - Filter odd elements from value lists in dictionary

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 18:08:28

854 Views

The dictionary is a popular data type in Python that has a key with value pair and doesn’t allow duplicates. To filter the odd elements it has some built-in functions like items(), filter(), lambda, and, the list() will be used to Filter odd elements from value lists in the dictionary. ... Read More

Advertisements