From 9a2718ae3a0d2b70af07eb002077fa60207cf490 Mon Sep 17 00:00:00 2001 From: Satwik Date: Fri, 27 Dec 2019 20:00:59 +0530 Subject: [PATCH] Fix typo Closes https://github.com/satwikkansal/wtfpython/issues/162 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f2a825a..7d53527 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,7 @@ This saved one line of code, and implicitly prevented invoking `some_func` twice - As usual, parenthesizing of an expression containing `=` operator is not allowed. Hence the syntax error in `(a, b = 6, 9)`. -- The syntax of the Walrus operator is of the form `NAME: expr`, where `NAME` is a valid identifier, and `expr` is a valid expression. Hence, iterable packing and unpacking are not supported which means, +- The syntax of the Walrus operator is of the form `NAME:= expr`, where `NAME` is a valid identifier, and `expr` is a valid expression. Hence, iterable packing and unpacking are not supported which means, - `(a := 6, 9)` is equivalent to `((a := 6), 9)` and ultimately `(a, 9) ` (where `a`'s value is 6')