diff --git a/README.md b/README.md index 9695385..2e846cf 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,7 @@ Now, just run `wtfpython` at the command line which will open this collection in ### ▶ First things first! + For some reasons, "Walrus" operator (`:=`) has become a very popular feature in the language. Let's check it out, @@ -220,7 +221,7 @@ SyntaxError: invalid syntax -####💡 Explanation +#### 💡 Explanation **Quick walrus operator refresher** @@ -1455,7 +1456,7 @@ def some_func(val): ### ▶ Yielding from... return! - + 1\. ```py @@ -1634,7 +1635,6 @@ But I thought tuples were immutable... ### ▶ The disappearing variable from outer scope - ```py e = 7 @@ -1833,7 +1833,6 @@ a, b = a[b] = {}, 5 ### ▶ Modifying a dictionary while iterating over it - ```py x = {0: None} @@ -1870,7 +1869,7 @@ Yes, it runs for exactly **eight** times and stops. ### ▶ Stubborn `del` operation - + ```py class SomeClass: @@ -2065,7 +2064,6 @@ Where did element `3` go from the `numbers` list? ### ▶ Loop variables leaking out! - 1\. ```py for x in range(7): @@ -2607,7 +2605,7 @@ def similar_recursive_func(a): ### ▶ Wild imports - + ```py # File: module.py @@ -2725,7 +2723,7 @@ if noon_time: **Output (< 3.5):** -```sh +```py ('Time at noon is', datetime.time(12, 0)) ``` The midnight time is not printed. @@ -2763,7 +2761,6 @@ Sshh.. It's a super secret. ### ▶ `goto`, but why? - ```py from goto import goto, label