statistics.median() for calculation of median of list code example Example: median in python import statistics statistics.median(list_name)