1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-22 02:54:25 +01:00

Structure of Example: Enhance formatting

Made the structure of example more distinguishing
This commit is contained in:
Satwik Kansal 2017-09-07 16:32:20 +05:30 committed by GitHub
commit 0d55258685

52
README.md vendored
View File

@ -108,32 +108,32 @@ So, here ya go...
All the examples are structured like below:
### Some fancy Title
```py
# Setting up the code.
# Preparation for the magic...
```
**Output (Python version):**
```py
>>> triggering_statement
Probably unexpected output
```
(Optional): One line describing the unexpected output.
#### 💡 Explanation:
* Brief explanation of what's happening and why is it happening.
```py
Setting up examples for clarification (if necessary)
```
**Output:**
```py
>>> trigger # some example that makes it easy to unveil the magic
# some justified output
```
> ### Some fancy Title
>
> ```py
> # Setting up the code.
> # Preparation for the magic...
> ```
>
> **Output (Python version):**
> ```py
> >>> triggering_statement
> Probably unexpected output
> ```
> (Optional): One line describing the unexpected output.
>
>
> #### 💡 Explanation:
>
> * Brief explanation of what's happening and why is it happening.
> ```py
> Setting up examples for clarification (if necessary)
> ```
> **Output:**
> ```py
> >>> trigger # some example that makes it easy to unveil the magic
> # some justified output
> ```
# Usage