Dictionary values
Returns a flat list of all the values in a flat dictionary.
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.
Returns a flat list of all the values in a flat dictionary.
Creates a list of partial sums.
Checks if all the elements in values
are included in lst
.
Checks if any element in values
is included in lst
.
Initializes a list containing the numbers in the specified range where start
and end
are inclusive with their common difference step
.
Checks if the provided function returns True
for at least one element in the list.
Returns a list with n
elements removed from the right.
Returns a list with n
elements removed from the left.
Returns every nth
element in a list.
Returns the index of the element with the minimum value in a list.
Returns all elements in a list except for the first one.
Returns a list with n
elements removed from the end.
Returns a list with n
elements removed from the beginning.
Transposes a two-dimensional list.
Checks if all the values in a list are unique.
Calculates the average of two or more numbers.
Generates a list, containing the Fibonacci sequence, up until the nth term.
Returns the unique elements in a given list.
Checks if all elements in a list are equal.
Casts the provided value as a list if it's not one.
Counts the occurrences of a value in a list.
Checks if there are duplicate values in a flat list.
Returns the head of a list.
Returns all the elements of a list except the last one.