An interactive computational document that combines executable code cells, Markdown explanations, and saved outputs for…