How and when to use Kolmogorov–Smirnov Test

Kolmogorov–Smirnov test explained simply with math, Python, and visuals to check if data fits a theoretical distribution