A comet is an icy, small solar system body that, when passing close to the sun, warms and begins to release gases. This…