What is machine learning?
Machine learning is programming with examples instead of hand-written rules.
Instead of coding "if the email says FREE MONEY, mark spam", you show the algorithm thousands of labelled emails and it discovers the rules itself — great for messy pattern problems.
Mental model: ML learns a function f(input) → output from examples, then applies it to unseen inputs.