2017-08-31 20:52:18 +03:00
|
|
|
All patches are welcome. If you're adding a new example, please do create an issue before submitting a patch.
|
|
|
|
|
2017-08-31 16:41:20 +03:00
|
|
|
You can use the following template for adding a new example:
|
|
|
|
|
2017-08-31 16:43:00 +03:00
|
|
|
<pre>
|
|
|
|
### Some fancy Title
|
|
|
|
|
|
|
|
```py
|
|
|
|
# Setting up the code.
|
|
|
|
# Preparation for the magic...
|
2017-08-31 16:41:20 +03:00
|
|
|
```
|
|
|
|
|
2017-08-31 16:43:00 +03:00
|
|
|
**Output (Python version):**
|
|
|
|
```py
|
|
|
|
>>> triggering_statement
|
|
|
|
Probably 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:
|
|
|
|
* Brief explanation of what's happening and why is it happening.
|
2017-08-31 16:41:20 +03:00
|
|
|
```py
|
2017-08-31 16:43:00 +03:00
|
|
|
Setting up examples for clarification (if necessary)
|
2017-08-31 16:41:20 +03:00
|
|
|
```
|
2017-08-31 16:43:00 +03:00
|
|
|
**Outupt:**
|
2017-08-31 16:41:20 +03:00
|
|
|
```py
|
2017-08-31 16:43:00 +03:00
|
|
|
>>> trigger # some example that makes it easy to unveil the magic
|
|
|
|
# some justified output
|
2017-08-31 16:41:20 +03:00
|
|
|
```
|
|
|
|
```
|
2017-08-31 16:43:00 +03:00
|
|
|
</pre>
|