Martin Heinz martinheinz.dev

Here's why you should be using Python's walrus operator  ↦

The assignment operator - or walrus operator as we all know it - is a feature that’s been in Python for a while now (since 3.8), yet it’s still somewhat controversial and many people have unfounded hate for it.

In this article I will try to convince you that the walrus operator really is a good addition to the language and that if you use it properly, then it can help you make your code more concise and readable.


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00