Nov 14, 2022
The walrus operator has its uses, but I have my doubts about your example. Hiding a variable assignment inside a print statement seems like a recipe for confusion.
Just because you can do two totally unrelated things in the same statement doesn't mean you should.