1-liner: statistics already have it solution in Creative category for Median by Stensen
checkio = __import__('statistics').median
Sept. 26, 2021