Skip to content

Commit f3c7afe

Browse files
committed
Minor corrections
1 parent d7c8b73 commit f3c7afe

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h1 align="center">What the f*ck Python! 🐍</h1>
33
<p align="center">An interesting collection of surprising snippets and lesser-known Python features.</p>
44

5-
Translations: [Chinese 中文](https://github.com/leisurelicht/wtfpython-cn)
5+
Translations: [Chinese 中文](https://github.com/leisurelicht/wtfpython-cn) | [Add translation](https://github.com/satwikkansal/wtfpython/issues/new?title=Add%20translation%20for%20[LANGUAGE]&body=Expected%20time%20to%20finish:%20[X]%20weeks.%20I%27ll%20start%20working%20on%20it%20from%20[Y].)
66

77
Python, being a beautifully designed high-level and interpreter-based programming language, provides us with many features for the programmer's comfort. But sometimes, the outcomes of a Python snippet may not seem obvious at first sight.
88

@@ -24,7 +24,7 @@ So, here we go...
2424
- [Structure of the Examples](#structure-of-the-examples)
2525
+ [▶ Some fancy Title](#-some-fancy-title)
2626
- [Usage](#usage)
27-
- [👀 Examples](#%F0%9F%91%80-examples)
27+
- [👀 Examples](#-examples)
2828
* [Section: Strain your brain!](#section-strain-your-brain)
2929
+ [▶ First things first!](#-first-things-first)
3030
+ [▶ Strings can be tricky sometimes](#-strings-can-be-tricky-sometimes)
@@ -91,7 +91,6 @@ So, here we go...
9191
+ [`+=` is faster](#--is-faster)
9292
+ [▶ Let's make a giant string!](#-lets-make-a-giant-string)
9393
+ [▶ Minor Ones](#-minor-ones)
94-
* [~~~ That's all folks! ~~~](#-thats-all-folks-)
9594
- [Contributing](#contributing)
9695
- [Acknowledgements](#acknowledgements)
9796
- [🎓 License](#%F0%9F%8E%93-license)
@@ -221,7 +220,7 @@ SyntaxError: invalid syntax
221220
222221
223222
224-
💡 Explanation
223+
####💡 Explanation
225224
226225
**Quick walrus operator refresher**
227226
@@ -3355,7 +3354,7 @@ Let's increase the number of iterations by a factor of 10.
33553354
+ `++a` parses as `+(+a)` which translates to `a`. Similarly, the output of the statement `--a` can be justified.
33563355
+ This StackOverflow [thread](https://stackoverflow.com/questions/3654830/why-are-there-no-and-operators-in-python) discusses the rationale behind the absence of increment and decrement operators in Python.
33573356
3358-
* You must be aware of the Walrus operator in Python. But have you ever heard about _the space-invader operator_?
3357+
* You must be aware of the Walrus operator in Python. But have you ever heard about *the space-invader operator*?
33593358
```py
33603359
>>> a = 42
33613360
>>> a -=- 1
@@ -3470,26 +3469,28 @@ f()
34703469
```
34713470
The behavior is due to the matching of empty substring(`''`) with slices of length 0 in the original string.
34723471
3472+
**That's all folks!**
3473+
34733474
---
34743475
---
34753476
34763477
# Contributing
34773478
3478-
Here are a few ways that you can contribute to wtfpython,
3479+
A few ways that you can contribute to wtfpython,
34793480
34803481
- Suggesting new examples
3481-
- Helping with translation (See issues labeled translation)
3482-
- Minor corrections like pointing out outdated snippets, typos, formatting errors, etc
3483-
- Identifying gaps (things inadequate explanation, redundancy, etc)
3484-
- Suggestions in general for making this project more fun and useful
3482+
- Helping with translation (See [issues labeled translation](https://github.com/satwikkansal/wtfpython/issues?q=is%3Aissue+is%3Aopen+label%3Atranslation))
3483+
- Minor corrections like pointing out outdated snippets, typos, formatting errors, etc.
3484+
- Identifying gaps (things like inadequate explanation, redundant examples, etc.)
3485+
- Any creative suggestions to make this project more fun and useful
34853486
3486-
Please see [CONTRIBUTING.md](/CONTRIBUTING.md) for more details. Feel free to create a new [issue](https://github.com/satwikkansal/wtfpython/issues/new).
3487+
Please see [CONTRIBUTING.md](/CONTRIBUTING.md) for more details. Feel free to create a new [issue](https://github.com/satwikkansal/wtfpython/issues/new) to discuss things.
34873488
34883489
PS: Please don't reach out with backlinking requests, no links will be added unless they're highly relevant to the project.
34893490
34903491
# Acknowledgements
34913492
3492-
The idea and design for this collection were initially inspired by Denys Dovhan's awesome project [wtfjs](https://github.com/denysdovhan/wtfjs). The overwhelming support by the community gave it the shape it is in right now.
3493+
The idea and design for this collection were initially inspired by Denys Dovhan's awesome project [wtfjs](https://github.com/denysdovhan/wtfjs). The overwhelming support by pythonistas gave it the shape it is in right now.
34933494
34943495
#### Some nice Links!
34953496
* https://www.youtube.com/watch?v=sH4XF6pKKmk
@@ -3510,7 +3511,7 @@ The idea and design for this collection were initially inspired by Denys Dovhan'
35103511
[license-url]: http://www.wtfpl.net
35113512
[license-image]: https://img.shields.io/badge/License-WTFPL%202.0-lightgrey.svg?style=flat-square
35123513
3513-
## Surprise your friends too?
3514+
## Surprise your friends as well!
35143515
35153516
If you liked wtfpython, you can use these quick links to share it with your friends,
35163517

0 commit comments

Comments
 (0)