Artificial Intelligence (AI) is based on the principle that human intelligence can be defined in a way that a machine can easily mimic it and execute tasks.
Machine Learning (ML), on the other hand, is an application of AI that provides systems the ability to automatically learn and improve from experience without being explicitly programmed.
The goals of AI include learning, reasoning, and perception.