Artificial intelligence is a technology that enables a machine to simulate human behavior. However, Machine learning is a subset of AI which allows a machine to automatically learn from past data without programming explicitly. The goal of AI is to make a smart computer system like humans to solve complex problems.