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.
Learn how to sort a Python dictionary list using a tuple key.
Python, List
Splits values into two groups, based on the result of the given filter
list.
Python, List
Finds the value of the first element in the given list that satisfies the provided testing function.
Python, List
Finds the value of the last element in the given list that satisfies the provided testing function.
Python, Dictionary
Inverts a dictionary with unique hashable values.
Python, Dictionary
Merges two or more dictionaries.
Learn how Python's lists and tuples are different and level up your code today.
Python, List
Understand Python's named tuples and start using them in your projects today.
Python, List
Chunks a list into smaller lists of a specified size.
Python, List
Chunks a list into n
smaller lists.
Python, List
Finds the items that are parity outliers in a given list.
Python, String
Converts the values of RGB components to a hexadecimal color code.
Python, Dictionary
Sorts the given dictionary by key.
Python, Math
Returns the sum of the powers of all the numbers from start
to end
(both inclusive).
Python, Math
Converts an integer to its roman numeral representation.
Accepts value between 1
and 3999
(both inclusive).