In machine learning, a computer learns from examples instead of someone programming every rule by hand.
Illustration: AI-generated · AI Compare Ninja · CC BY 4.0
Example
A spam filter sees thousands of spam emails and then spots new spam on its own.
For pros
There is supervised learning (with answers), unsupervised learning (patterns without answers) and reinforcement learning (with rewards). Large language models combine several of these methods.