Tapas Kumar Ghosh has Published 150 Articles

How to iterate over Columns in Numpy

Tapas Kumar Ghosh

Tapas Kumar Ghosh

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

812 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

How to set up pygame with Eclipse?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 16:14:00

121 Views

The pygame is the name of the module of Python that helps to build the code for graphics such as rectangles, squares, circles, etc. It is also used the write the code for animation programs in Python. Eclipse is famous for Java IDE but here we have to set the ... Read More

Python - K Elements Reversed Slice

Tapas Kumar Ghosh

Tapas Kumar Ghosh

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

85 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

308 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

236 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

181 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

141 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

4K+ 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

Flatten List to Individual Elements using Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 15:59:50

92 Views

Lists are a powerful data structure in Python that can hold many values of various types. We may come across nested lists where the items themselves are lists. In such circumstances, flattening the list and retrieving individual elements from the hierarchical structure may be essential. In Python, we have some ... Read More

Python - Find dictionary keys Present in a Strings List

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 15:57:54

224 Views

The dictionary is one of the famous datatypes of Python that consist of keys with value pairs. The strings list is the set of elements that are represented either in a single or double quotation. In Python, we have some built-in functions such as keys(), set(), intersection, and append() will ... Read More

Advertisements