Machine Learning (ML) is an extended form of data science and an application of Artificial Intelligence. It is a field…