Python

Python accumulate()

Using the Python ‘accumulate()’ Function to Aggregate Data, With Examples

This article will detail how to use the ‘accumulate()’ function in Python and provide some easy-to-follow example code. The accumulate() function in Python will process an iterable (iterables are things like lists, dictionaries, sets, or tuples – collections containing items which can be looped over) – returning the… Read More »Using the Python ‘accumulate()’ Function to Aggregate Data, With Examples

Using Python filter()

Using the Python ‘filter()’ Function to Filter a List, with Examples

This article will cover the syntax and usage of the filter function. It will work for both Python 2 and Python 3. The filter function in Python takes an iterable (iterables are things like lists, dictionaries, sets, or tuples – collections containing items that can be looped over) and checks… Read More »Using the Python ‘filter()’ Function to Filter a List, with Examples

Using Python Map()

Using the Python ‘map()’ Function to Process a List, With Examples

This article will explain the map() function in Python and show you how to use it. The Python map() function applies a given function for all items in an iterable (iterables are things like lists, dictionaries, sets, or tuples – collections containing items that can be looped over). The syntax… Read More »Using the Python ‘map()’ Function to Process a List, With Examples

Using Python reduce()

Using the Python ‘reduce()’ Function to Aggregate Data, With Examples

This article will show you how to use the Python reduce() function to aggregate data from values in an iterable (iterables are things like lists, dictionaries, sets, or tuples – collections containing items that can be looped over) and reduce them to a single accumulated value. The code and examples… Read More »Using the Python ‘reduce()’ Function to Aggregate Data, With Examples