AI-assisted — how our quizzes are made
Python indentation rules, naming conventions and rules, assignment semantics, variable binding, and fundamental syntax elements.
10 questionsNumbers, strings, booleans, None, identity, equality, mutability, copying, and truth-value testing.
10 questionsLists, tuples, dictionaries, sets, slicing, unpacking, comprehensions, sorting, and collection semantics.
Function definitions, arguments, closures, decorators, lambda expressions, LEGB scope, and callable behavior.
10 questionsClasses, instances, inheritance, composition, protocols, special methods, properties, descriptors, and dataclasses.
10 questionsImports, modules, packages, __name__, dependency environments, packaging concepts, and standard-library discovery.
10 questionsType hints, unions, generics, protocols, TypedDict, dataclasses, structural pattern matching, and modern syntax.
10 questionsIterable and iterator protocols, generators, yield, generator expressions, itertools, and lazy evaluation.
10 questionsException hierarchy, raising and chaining, try/except/else/finally, custom exceptions, and context managers.
10 questionsThreads, processes, asyncio, the GIL, synchronization, cancellation, profiling, memory behavior, and performance trade-offs.
10 questionsWhat does Protocol support?
Structural typing
Process creation
Exception chaining
Which sort is stable in Python?
list.sort() and sorted()
Only sorted()
Neither
Which function can accept another function as an ordinary value?
Any Python function
Only lambda
Only built-ins