The notebook functionality of Python provides a really amazing way of analyzing data and writing reports in one place…