Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
What's the difference between an iterable and an iterator? How does a for loop work under the hood?JuniorYou need to process a 20 GB log file: filter the lines and compute some aggregates over them. How would you write that in Python?Mid-levelHow is a generator different from a regular iterator, and what actually happens on yield? Tell me about send and yield from — where have you used them?Senior