Intermediate
Python
Q63 / 101
What is the walrus operator := ?
Correct! Well done.
Incorrect.
The correct answer is B) An assignment expression that assigns and returns a value in a single expression
B
Correct Answer
An assignment expression that assigns and returns a value in a single expression
Explanation
while chunk := f.read(1024): processes and assigns in one step. Added in Python 3.8.
Progress
63/101