Tapas Kumar Ghosh has Published 226 Articles

Check if a number with even number of digits is palindrome or not

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Aug-2023 18:02:54

373 Views

The palindrome refers to same number when the digits are reversed. In this program, we need to set the condition and operation based on an even number of digits to identify whether the given input satisfied for palindrome or not. In C++, we have STL(Standard template library) functions such as ... Read More

Python - K List Dictionary Mesh

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Aug-2023 17:58:41

160 Views

The term dictionary Mesh is defined by storing the value pair of every key set to dictionary. To include the K list in the dictionary means to insert the list as value pair. In Python, we have some built-in functions such as defaultdict() and lambda will be used to solve ... Read More

Python - Filter unequal elements of two lists corresponding same index

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 16:20:05

549 Views

The indexing is the specific position of the element from the list. The unequal elements of two lists refer to those indexes whose elements are not matched from both lists. In Python, we have some built-in functions like enumerate(), zip(), filter(), etc. that can be used to filter unequal elements ... Read More

How to iterate over Columns in Numpy

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 16:15:40

2K+ Views

The name Numpy stands for Numerical Python. It helps to solve the mathematical operation on an array. In Python, we have some built-in functions such as nditor(), T(), array(), shape[], and apply_along_axis() that will be used to iterate over columns in Numpy. Syntax The following syntax is used in ... Read More

Python - K Elements Reversed Slice

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 16:11:56

239 Views

The reverse slice is defined by creating a slice that begins with the length of the string and ends with the 0th index. For reversing the list element it will use the negative value notation, where we can get a reversed order of the original list element. In Python, we ... Read More

Finding Words with both Alphabet and Numbers using Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 16:09:25

706 Views

Python refers to the high-level programming language that has various tools and built-in functions to analyze text data. This problem statement is a common task that uses some built-in functions- filter(), isdigit(), isalpha(), findall(), split(), and, append() to find the both alphabet and numbers using Python. Let’s see how to ... Read More

Python - Find first Element by Second in Tuple List

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 16:07:16

556 Views

The tuple list defines the two different datatypes of Python that represent the static and dynamic characteristics respectively. In a dictionary, we can create keys using tuples whereas lists cannot be used as keys. In Python, we have some built-in functions like next(), items(), index(), lambda, and, min() will be ... Read More

Convert Matrix to Coordinate Dictionary in Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 16:04:40

550 Views

The dictionary is one of the most popular among four datatypes known for unordered collection of key-value pairs. The Python matrix will be used to represent the list of lists whereas an inner list represents the row-value of a matrix. A coordinate dictionary is defined as tuples to set the ... Read More

Python- Find the indices for k Smallest Elements

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 16:03:09

500 Views

The indices are the position of the elements present in the list whereas K defines the specific value to target the smallest element from the list. Sometimes, we are working in the field of web development and database these tasks generally occur to solve this problem statement. In Python, ... Read More

Python - Finding the index of Minimum Element in List

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 16:01:27

11K+ Views

The position of the smallest value within a list is indicated by the index of the minimum element. Each list element has a distinct index that increases by one with each additional element after the first, starting at zero for the first element. By determining the index of the minimum ... Read More

Advertisements