Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
Which data structures from the collections module do you know, and what are they for?JuniorWhen do you use functools.lru_cache, and what problems can you run into with it?Mid-levelHow does a context manager work under the hood? What happens to an exception inside a with block, and how would you write a manager that handles a database transaction?Senior