Introduction Supervised learning is a type of machine learning used to predict future outcomes. It…