Quiz: Comprehensions and Functional Tools
Test your advanced understanding of Python's comprehensions, functional primitives (map, filter), and aggregation strategies through complex, real-world scenarios.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
We execute the following code involving a list comprehension and a global variable. What is the final value of x?
x = 50
squares = [x * x for x in range(3)]
print(x)
A.
9
B.
2
C.
50
D.
None (The variable x is deleted after the comprehension)
1 / 9
...