We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7006084 commit 56c0347Copy full SHA for 56c0347
README.md
@@ -161,14 +161,17 @@ $ wtfpython
161
<!-- Example ID: d3d73936-3cf1-4632-b5ab-817981338863 -->
162
<!-- read-only -->
163
164
-For some reason, the "Walrus" operator (`:=`) has become a popular feature in the language. Let's check it out,
+For some reason, the Python 3.8's "Walrus" operator (`:=`) has become quite popular. Let's check it out,
165
166
1\.
167
168
```py
169
+# Python version 3.8+
170
+
171
>>> a = "wtf_walrus"
172
>>> a
173
'wtf_walrus'
174
175
>>> a := "wtf_walrus"
176
File "<stdin>", line 1
177
a := "wtf_walrus"
@@ -183,6 +186,8 @@ SyntaxError: invalid syntax
183
186
2 \.
184
187
185
188
189
190
191
>>> a = 6, 9
192
193
(6, 9)
0 commit comments