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.
Python, Math
Calculates the average of two or more numbers.
Python, Date
Calculates the date of n
days ago from today.
Python, Date
Calculates the day difference between two dates.
Python, Date
Calculates the date of n
days from today.
Python, Function
Invokes the provided function after ms
milliseconds.
Python, Math
Generates a list, containing the Fibonacci sequence, up until the nth term.
Python, Dictionary
Finds the first key in the provided dictionary that has the given value.
Python, Date
Checks if the given date is a weekday.
Python, Date
Checks if the given date is a weekend.
Python, Dictionary
Checks if the given key exists in a dictionary.
Python, List
Returns the unique elements in a given list.
Python, List
Checks if all elements in a list are equal.
Python, List
Casts the provided value as a list if it's not one.
Python, List
Counts the occurrences of a value in a list.
Python, List
Creates a list of partial sums.