Who wants to be a millionaire: iterables edition
Briefly

Who wants to be a millionaire: iterables edition
"Question 1 is an easy one to get you started: print("Hello, world!"). This serves as a simple introduction to the quiz."
"Question 2 involves a generator expression: squares = (x ** 2 for x in range(3)), and asks for the type of the resulting object."
"Question 3 references a previous talk about itertools, specifically mentioning tee, which is the only object in itertools that is not an iterable."
"Question 4 presents a complex expression using itertools: from itertools import * print(sum(chain.from_iterable(chain(*next(islice(permutations(islice(batched(pairwise(count()),5),3,9)),15,None))))) to challenge participants."
A lightning talk at PyCon Lithuania 2026 featured a Python quiz themed on iterables. The quiz included four questions, each designed to test knowledge of Python iterables. The first question involved a simple print statement, while the second focused on generator expressions. The third question referenced a previous talk about the itertools library, specifically the tee function. The final question presented a complex expression using itertools functions. A performance of the talk was recorded and will be linked later.
Read at Mathspp
Unable to calculate read time
[
|
]