The Python snippet collection contains helper functions for Python 3.6. It includes utilities for most common data types, such as primitivies, lists, dictionaries and date objects.
Splits values into two groups, based on the result of the given filtering function.
Python, List · Nov 2, 2020
Randomizes the order of the values of an list, returning a new list.
Python, List · Nov 2, 2020
Returns the difference between two lists, after applying the provided function to each list element of both.
Python, List · Nov 2, 2020
Retrieves the value of the nested key indicated by the given selector list from a dictionary or list.
Python, Dictionary · Oct 28, 2020
Returns a list of elements that exist in both lists, after applying the provided function to each list element of both.
Python, List · Nov 2, 2020
Maps the values of a list to a dictionary using a function.
Python, List · Nov 2, 2020
Returns the symmetric difference between two lists, after applying the provided function to each list element of both.
Python, List · Nov 2, 2020
Returns every element that exists in any of the two lists once, after applying the provided function to each element of both.
Python, List · Nov 2, 2020
Checks if the a value is an empty sequence or collection.
Python, List · Jan 12, 2023
Mutable default arguments can trip up Python beginners and veterans alike. Here's a quick workaround to deal with them.
Python, Function · Feb 27, 2022
Understand Python's named tuples and start using them in your projects today.
Python, List · Jun 12, 2021