|
4 | 4 | [![WTFPL 2.0][license-image]][license-url]
|
5 | 5 |
|
6 | 6 |
|
7 |
| -Python, being awesome by design 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 to a regular user at first sight. |
| 7 | +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 to a regular user at first sight. |
8 | 8 |
|
9 | 9 | Here is a fun project attempting to collect such classic and tricky examples of unexpected behaviors in Python and discuss what exactly is happening under the hood!
|
10 | 10 |
|
@@ -156,10 +156,10 @@ All the examples are structured like below:
|
156 | 156 |
|
157 | 157 | A good way to get the most out of these examples, in my opinion, will be just to read the examples chronologically, and for every example:
|
158 | 158 | - Carefully read the initial code for setting up the example. If you're an experienced Python programmer, most of the times you will successfully anticipate what's gonna happen next.
|
159 |
| -- Read the output snippets and |
| 159 | +- Read the output snippets and, |
160 | 160 | + Check if the outputs are the same as you'd expect.
|
161 | 161 | + Make sure know the exact reason behind the output being the way it is.
|
162 |
| - - If no, read the explanation (and if you still don't understand, shout out! and create an issue [here](https://github.com/satwikkansal/wtfPython)). |
| 162 | + - If no, take a deep breath, and read the explanation (and if you still don't understand, shout out! and create an issue [here](https://github.com/satwikkansal/wtfPython)). |
163 | 163 | - If yes, give a gentle pat on your back, and you may skip to the next example.
|
164 | 164 |
|
165 | 165 | PS: You can also read these examples at the command line. First install the npm package `wtfpython`,
|
|
0 commit comments