For more information on concepts covered in this lesson, you can check out:
Walrus Operator Pitfalls
If you need to support older versions of Python, then you can’t ship code that uses assignment expressions. There are some projects, like
walrus, that can automatically translate walrus operators into code that’s compatible with older versions of Python.
00:41 Experience with the walrus operator indicates that it won’t revolutionize Python. Instead, using assignment expressions where they are useful can help you to make several small improvements to your code that can benefit your work overall.
Become a Member to join the conversation.