Ben Chuanlong Du's Blog

It is never too late to learn.

The Walrus Operator in Python 3.8

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

List Comprehension

Notice that a walrus expression in a list comprehension must be in included in parentheses (to avoid ambiguitions).