## Python | Linear search on list or tuples

Let’s see a basic linear search operation on Python list and tuples. A simple approach is to do linear search, i.e Start from the leftmost… Read More »

## Generating random number list in Python

Sometimes, in making programs for gaming or gambling, we come across the task of creating the list all with random numbers. This task is to… Read More »

## Python | All possible permutations of N lists

Computing permutations is always a necessary task in many of the practical applications and a concept widely used in Mathematics to achieve solutions to many… Read More »

## Python | Test for False list

Sometimes, we need to check if a list is completely True of False, these occurrences come more often in testing purposes after the development phase.… Read More »

## Python | Truncate a list

Sometimes there is a requirement to restrict the list size to a particular number and remove all the elements from list which occur after a… Read More »

## Python | Boolean list initialization

Many a times in programming, we require to initialize a list with some initial values. In Dynamic programming, this is used more often and mostly… Read More »

## Python | Removing dictionary from list of dictionaries

The common utility to remove the dictionary corresponding to particular key in a list of dictionaries is also a problem whose concise version is always… Read More »

## Python | Remove None values from list

Due to the upcoming of Machine Learning, the focus has now moved on handling the None values than ever before, the reason behind this is… Read More »

## Python | Split dictionary of lists to list of dictionaries

Conversion from one data type to other is essential in various facets of programming. Be it development or competitive programming. Hence knowledge of it is… Read More »

## Python | Inserting item in sorted list maintaining order

Working with sorted list is essential because mostly the data we get is ordered. Any query can come to insert the new data into its… Read More »

## Python | Splitting string to list of characters

Sometimes we need to work with just the lists and hence strings might need to be converted into lists. It has to be converted in… Read More »

## Python | Sort numeric strings in a list

Sorting list is an easy task and has been dealt with in many situations. With Machine Learning and Data Science emerging, sometimes we can get… Read More »

## Python | Assign multiple variables with list values

We generally come through the task of getting certain index values and assigning variables out of them. The general approach we follow is to extract… Read More »

## Python | Custom list split

Development and sometimes machine learning applications require splitting lists into smaller list in a custom way, i.e on certain values on which split has to… Read More »

## Python | Get first and last elements of a list

Sometimes, there might be a need to get the range between which a number lies in the list, for such applications we require to get… Read More »