Cancer is one of the leading causes of death globally, and early detection plays a vital role in improving survival rates. Traditional diagnostic approaches such as biopsies, X-rays, and manual image analysis are time- consuming, costly, and often prone to human error. This paper explores the application of machine learning (ML) for cancer detection using Python and its extensive libraries, including scikit-learn, pandas, NumPy, and matplotlib.