Machine learning and Python interview questions

515 questions on 27 topics from the Python, Data Tools, Maths, Statistics and Machine Learning courses, from first principles to the follow-ups an interviewer asks next. Every question is free to read, and so are the first 3 model answers on each page.

Interview questions by topic

Each page covers one module of a course, so the questions follow the order the ideas are taught.

Python interview questions

The Python course teaches every topic these questions cover.

Data Tools interview questions

The Data Tools course teaches every topic these questions cover.

Maths interview questions

The Maths course teaches every topic these questions cover.

Statistics interview questions

The Statistics course teaches every topic these questions cover.

Machine Learning interview questions

The Machine Learning course teaches every topic these questions cover.

How to practise with them

  1. Answer each question out loud, or in writing, before you read the model answer.
  2. Then answer the follow-up an interviewer would ask: why it works, when it fails, and what you would check in code.
  3. Where you get stuck, go back to the module's lessons or its cheat sheet, then try the question again a day later.

Questions test. Lessons teach.

Every question comes from a course module, where the idea is taught from the intuition to code you run.