What is Walrus Operator in python ? Python 3.8 Version New Features.
💗 Each new version of python adds new features to language. for python 3.8 the bigger change is the addition of assignment expression. Specifically the " := " operator gives you a new syntax for assigning variable in the middle of expression. This operator is colloquially known as the Walrus operator. The Walrus operator is officially known as the Assignment Expression Operator. During early discussion it was dubbed the Walrus Operator because the := syntax resembles the eye and tusks of a sideway walrus. You may also see the walrus operator referred to as the Colan Equals Operator. SYNTAX=> Variable:=expression When to use the Walrus Operator=> ...
Comments
Post a Comment