Statistics in python

Python has a built-in library called statistics. This module provides functions for calculating mathematical statistics of numeric…