Artificial Intelligence (AI) is the branch of computer science that enables machines to think, learn, and make decisions like humans. It focuses on creating systems that can perform tasks such as speech recognition, problem-solving, and decision-making.
Machine Learning (ML) is a subset of AI that allows systems to learn from data and improve over time without being explicitly programmed. ML algorithms analyze data patterns to make predictions or decisions — powering applications like recommendation systems, fraud detection, and autonomous vehicles.