mirror of
https://github.com/satwikkansal/wtfpython
synced 2025-07-04 20:38:06 +02:00
Update README.md
- assignment expressions are evaluated and printed by the REPL
This commit is contained in:
parent
e9b04d33f7
commit
78cb5f39f5
1 changed files with 2 additions and 0 deletions
2
README.md
vendored
2
README.md
vendored
|
@ -181,6 +181,7 @@ File "<stdin>", line 1
|
|||
SyntaxError: invalid syntax
|
||||
|
||||
>>> (a := "wtf_walrus") # This works though
|
||||
'wtf_walrus'
|
||||
>>> a
|
||||
'wtf_walrus'
|
||||
```
|
||||
|
@ -195,6 +196,7 @@ SyntaxError: invalid syntax
|
|||
(6, 9)
|
||||
|
||||
>>> (a := 6, 9)
|
||||
(6, 9)
|
||||
>>> a
|
||||
6
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue