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.
Creates a function that will invoke a predicate function for the specified property on a given dictionary.
Python, Function · Nov 2, 2020
Returns a list with n
elements removed from the left.
Python, List · Nov 2, 2020
Returns a list with n
elements removed from the right.
Python, List · Nov 2, 2020
Returns the index of the element with the minimum value in a list.
Python, Math · Nov 2, 2020
Calculates the month difference between two dates.
Python, Date · Oct 28, 2020
Returns a list with n
elements removed from the beginning.
Python, List · Sep 15, 2020
Returns a list with n
elements removed from the end.
Python, List · Sep 15, 2020
Learn 3 easy ways to swap the values of two variables in Python.
Python, Variables · Nov 7, 2021
Checks if all the values in a list are unique.
Python, List · Jan 7, 2021