Skip to content

Commit ef68d1b

Browse files
committed
Add markers for new content
1 parent 8522964 commit ef68d1b

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

README.md

+19-20
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Now, just run `wtfpython` at the command line which will open this collection in
165165
166166
## Section: Strain your brain!
167167
168-
### ▶ First things first!
168+
### ▶ First things first! *
169169
170170
<!-- Example ID: d3d73936-3cf1-4632-b5ab-817981338863 -->
171171
<!-- read-only -->
@@ -451,7 +451,7 @@ True
451451
452452
---
453453
454-
### ▶ Disorder within order
454+
### ▶ Disorder within order *
455455
<!-- Example ID: 91bff1f8-541d-455a-9de4-6cd8ff00ea66 --->
456456
```py
457457
from collections import OrderedDict
@@ -549,7 +549,7 @@ What is going on here?
549549
550550
---
551551
552-
### ▶ Keep trying...
552+
### ▶ Keep trying... *
553553
<!-- Example ID: b4349443-e89f-4d25-a109-82616be9d41a --->
554554
```py
555555
def some_func():
@@ -976,7 +976,7 @@ Even when the values of `x` were different in every iteration prior to appending
976976
977977
---
978978
979-
### ▶ The chicken-egg problem
979+
### ▶ The chicken-egg problem *
980980
<!-- Example ID: 60730dc2-0d79-4416-8568-2a63323b3ce8 --->
981981
1\.
982982
```py
@@ -1050,7 +1050,7 @@ The Subclass relationships were expected to be transitive, right? (i.e., if `A`
10501050
10511051
---
10521052
1053-
### ▶ All-true-ation
1053+
### ▶ All-true-ation *
10541054
10551055
<!-- Example ID: dfe6d845-e452-48fe-a2da-0ed3869a8042 -->
10561056
@@ -1379,7 +1379,7 @@ True
13791379
13801380
---
13811381
1382-
### ▶ Non-reflexive class method
1382+
### ▶ Non-reflexive class method *
13831383
13841384
<!-- Example ID: 3649771a-f733-413c-8060-3f9f167b83fd -->
13851385
@@ -1455,7 +1455,7 @@ def some_func(val):
14551455
---
14561456
14571457
1458-
### ▶ Yielding from... return!
1458+
### ▶ Yielding from... return! *
14591459
<!-- Example ID: 5626d8ef-8802-49c2-adbc-7cda5c550816 --->
14601460
1\.
14611461
@@ -1520,7 +1520,7 @@ Same result, that didn't work either.
15201520
15211521
---
15221522
1523-
### ▶ Nan-reflexivity
1523+
### ▶ Nan-reflexivity *
15241524
15251525
<!-- Example ID: 59bee91a-36e0-47a4-8c7d-aa89bf1d3976 --->
15261526
@@ -2012,8 +2012,7 @@ Can you guess why the output is `[2, 4]`?
20122012
---
20132013
20142014
2015-
### ▶ Lossy zip of iterators
2016-
2015+
### ▶ Lossy zip of iterators *
20172016
<!-- Example ID: c28ed154-e59f-4070-8eb6-8967a4acac6d --->
20182017
20192018
```py
@@ -2390,7 +2389,7 @@ class SomeClass:
23902389
23912390
---
23922391
2393-
### ▶ Needles in a Haystack
2392+
### ▶ Needles in a Haystack *
23942393
23952394
<!-- Example ID: 52a199b1-989a-4b28-8910-dff562cebba9 --->
23962395
@@ -2567,7 +2566,7 @@ def similar_recursive_func(a):
25672566
---
25682567
25692568
2570-
### ▶ Splitsies
2569+
### ▶ Splitsies *
25712570
<!-- Example ID: ec3168ba-a81a-4482-afb0-691f1cc8d65a --->
25722571
```py
25732572
>>> 'a'.split()
@@ -2603,7 +2602,7 @@ def similar_recursive_func(a):
26032602
26042603
---
26052604
2606-
### ▶ Wild imports
2605+
### ▶ Wild imports *
26072606
<!-- Example ID: 83deb561-bd55-4461-bb5e-77dd7f411e1c --->
26082607
<!-- read-only -->
26092608
@@ -2662,7 +2661,7 @@ NameError: name '_another_weird_name_func' is not defined
26622661
26632662
---
26642663
2665-
### ▶ All sorted?
2664+
### ▶ All sorted? *
26662665
26672666
<!-- Example ID: e5ff1eaf-8823-4738-b4ce-b73f7c9d5511 -->
26682667
@@ -2767,7 +2766,7 @@ from goto import goto, label
27672766
for i in range(9):
27682767
for j in range(9):
27692768
for k in range(9):
2770-
print("I'm trapped, please rescue!")
2769+
print("I am trapped, please rescue!")
27712770
if k == 2:
27722771
goto .breakout # breaking out from a deeply nested loop
27732772
label .breakout
@@ -2776,8 +2775,8 @@ print("Freedom!")
27762775
27772776
**Output (Python 2.3):**
27782777
```py
2779-
I'm trapped, please rescue!
2780-
I'm trapped, please rescue!
2778+
I am trapped, please rescue!
2779+
I am trapped, please rescue!
27812780
Freedom!
27822781
```
27832782
@@ -2945,7 +2944,7 @@ Try block executed successfully...
29452944
- `else` clause after try block is also called "completion clause" as reaching the `else` clause in a `try` statement means that the try block actually completed successfully.
29462945
29472946
---
2948-
### ▶ Ellipsis
2947+
### ▶ Ellipsis *
29492948
<!-- Example ID: 969b7100-ab3d-4a7d-ad7d-a6be16181b2b --->
29502949
```py
29512950
def some_func():
@@ -3324,7 +3323,7 @@ Let's increase the number of iterations by a factor of 10.
33243323
33253324
---
33263325
3327-
### ▶ Minor Ones
3326+
### ▶ Minor Ones *
33283327
<!-- Example ID: f885cb82-f1e4-4daa-9ff3-972b14cb1324 --->
33293328
* `join()` is a string operation instead of list operation. (sort of counter-intuitive at first usage)
33303329
@@ -3512,7 +3511,7 @@ The idea and design for this collection were initially inspired by Denys Dovhan'
35123511
35133512
If you liked wtfpython, you can use these quick links to share it with your friends,
35143513
3515-
[Twitter](https://twitter.com/intent/tweet?url=https://github.com/satwikkansal/wtfpython&hastags=python,wtfpython) | [Linkedin](https://www.linkedin.com/shareArticle?url=https://github.com/satwikkansal&title=What%20the%20f*ck%20Python!&summary=An%20interesting%20collection%20of%20subtle%20and%20tricky%20Python%20snippets.)
3514+
[Twitter](https://twitter.com/intent/tweet?url=https://github.com/satwikkansal/wtfpython&text=If%20you%20really%20think%20you%20know%20Python,%20think%20once%20more!%20Check%20out%20wtfpython&hastags=python,wtfpython) | [Linkedin](https://www.linkedin.com/shareArticle?url=https://github.com/satwikkansal&title=What%20the%20f*ck%20Python!&summary=If%20you%20really%20thing%20you%20know%20Python,%20think%20once%20more!) | [Facebook](https://www.facebook.com/dialog/share?app_id=536779657179021&display=page&href=https%3A%2F%2Fgithub.com%2Fsatwikkansal%2Fwtfpython&quote=If%20you%20really%20think%20you%20know%20Python%2C%20think%20once%20more!)
35163515
35173516
## Need a pdf version?
35183517

0 commit comments

Comments
 (0)