I think the main difference between Machine Learning and Artificial Intelligence is that AI, first of all, means that the computer imitates human behavior, and Machine Learning is a part of AI which consists of methods that allow computers to draw conclusions from data and provide them to AI applications. You can learn more about difference between Machine Learning vs AI vs Data Science: https://www.cleveroad.com/blog/data-science-vs-machine-learning-vs-ai