Category: Python


Walrus operator in Python

Walrus operator (:=) is used as an assignment operator. It assigns value to a variable and also returns the value. It is a new feature added in Python 3.8 version.