mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-22 11:04:25 +01:00
Change the position of the notes.
* Moves the position of the information regarding the Python version so that it is not skipped by the readers. * Also moves the position of the instructions for reproducing the "Skipping lines" example to just below the output. Closes https://github.com/satwikkansal/wtfPython/issues/17
This commit is contained in:
parent
046663efff
commit
82bbded3da
10
README.md
vendored
10
README.md
vendored
@ -98,6 +98,8 @@ So, here ya go...
|
|||||||
|
|
||||||
# Structure of the Examples
|
# Structure of the Examples
|
||||||
|
|
||||||
|
**Note:** All the examples mentioned below are tested on Python 3.5.2 interactive interpreter, and they should work for all the Python versions unless explicitly specified in the example description.
|
||||||
|
|
||||||
All the examples are structured like below:
|
All the examples are structured like below:
|
||||||
|
|
||||||
### Some fancy Title
|
### Some fancy Title
|
||||||
@ -114,10 +116,9 @@ Probably unexpected output
|
|||||||
```
|
```
|
||||||
(Optional): One line describing the unexpected output.
|
(Optional): One line describing the unexpected output.
|
||||||
|
|
||||||
**Note:** All the examples mentioned below are run on Python 3.5.2 interactive interpreter unless explicitly specified.
|
|
||||||
|
|
||||||
|
|
||||||
#### 💡 Explanation:
|
#### 💡 Explanation:
|
||||||
|
|
||||||
* Brief explanation of what's happening and why is it happening.
|
* Brief explanation of what's happening and why is it happening.
|
||||||
```py
|
```py
|
||||||
Setting up examples for clarification (if necessary)
|
Setting up examples for clarification (if necessary)
|
||||||
@ -151,6 +152,7 @@ Now, just run `wtfpython` at the command line which will open this collection in
|
|||||||
|
|
||||||
### Skipping lines?
|
### Skipping lines?
|
||||||
|
|
||||||
|
**Output:**
|
||||||
```py
|
```py
|
||||||
>>> value = 11
|
>>> value = 11
|
||||||
>>> valuе = 32
|
>>> valuе = 32
|
||||||
@ -160,6 +162,8 @@ Now, just run `wtfpython` at the command line which will open this collection in
|
|||||||
|
|
||||||
Wut?
|
Wut?
|
||||||
|
|
||||||
|
**Note:** The easiest way to reproduce this is to simply copy the statements from the above snippet and paste them into your file/shelll.
|
||||||
|
|
||||||
#### Explanation
|
#### Explanation
|
||||||
|
|
||||||
Some Unicode characters look identical to ASCII ones, but are considered distinct by the interpreter.
|
Some Unicode characters look identical to ASCII ones, but are considered distinct by the interpreter.
|
||||||
@ -171,8 +175,6 @@ Some Unicode characters look identical to ASCII ones, but are considered distinc
|
|||||||
42
|
42
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:** The easiest way to reproduce this is to simply copy the statements from the above snippet and paste them into your file/shelll.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Well, something is fishy...
|
### Well, something is fishy...
|
||||||
|
Loading…
Reference in New Issue
Block a user