Hard 10 questionsAI-generated
★★★★★★★★★★Not rated yet

Python Quiz: advanced generators, decorators, asyncio

Test your advanced Python knowledge: generators, decorators, the GIL, asyncio, type annotations, object copying, default values and PEP 8.

Start the quiz Created by lecouze13

Question preview

  1. What does calling a function that contains the yield keyword return?
  2. What happens when next(it) is called on an exhausted iterator, without a default value?
  3. What is a decorator in Python?

… and 7 more questions to discover by playing.