Introduction Machine learning is a technique for creating algorithms that can learn from data. This…