Statistics

**Online Courses**

Python Crash Course: Master Python Programming

**Statistics with Python**

Using the math library you can get various statistical values. We start by creating a list of values:

import math |

**Five number summary**

We can get the five number summary using the math library. The five number summary contains: minimum, maximum, median, mean and the standard deviation.

import math |

This code will create a boxplot:

import matplotlib.pyplot as plt |

Cookie policy | Privacy policy | ©