|
| 1 | +# What the f*ck Python! |
| 2 | + |
| 3 | +[![WTFPL 2.0][license-image]][license-url] |
| 4 | +[![NPM version][npm-image]][npm-url] |
| 5 | + |
| 6 | +> A collection of tricky Python examples |
| 7 | +
|
| 8 | +Python being an awesomoe higher level language, provides us many functionalities for our comfort. But sometimes, the outcomes may not seem obvious to a normal Python user at the first sight. Here's an attempt to collect such examples and see what exactly is happening under the hood! I find it a nice way to learn internals of a language and I think you'll like them as well! |
| 9 | + |
| 10 | +# Table of Contents |
| 11 | + |
| 12 | +<!-- START doctoc generated TOC please keep comment here to allow auto update --> |
| 13 | +<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> |
| 14 | +**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)* |
| 15 | + |
| 16 | +- [Checklist](#checklist) |
| 17 | +- [👀 Examples](#-examples) |
| 18 | + - [Example heading](#example-heading) |
| 19 | + - [💡 Explanation:](#-explanation) |
| 20 | +- [Contributing](#contributing) |
| 21 | +- [Acknowledgements](#acknowledgements) |
| 22 | +- [🎓 License](#-license) |
| 23 | + |
| 24 | +<!-- END doctoc generated TOC please keep comment here to allow auto update --> |
| 25 | + |
| 26 | +# Checklist |
| 27 | + |
| 28 | +[ ] https://www.youtube.com/watch?v=sH4XF6pKKmk |
| 29 | +[ ] https://www.reddit.com/r/Python/comments/3cu6ej/what_are_some_wtf_things_about_python/ |
| 30 | + |
| 31 | +# 👀 Examples |
| 32 | + |
| 33 | +## Example heading |
| 34 | + |
| 35 | +One line of what's happening: |
| 36 | + |
| 37 | +```py |
| 38 | +setting up |
| 39 | +``` |
| 40 | + |
| 41 | +```py |
| 42 | +>>> triggering_statement |
| 43 | +weird output |
| 44 | +``` |
| 45 | + |
| 46 | +### 💡 Explanation: |
| 47 | + |
| 48 | +* Better to give outside links |
| 49 | +* or just explain again in brief |
| 50 | + |
| 51 | +# Contributing |
| 52 | + |
| 53 | +All patches are Welcome! Filing an issue first before submitting a patch will be appreciated :) |
| 54 | + |
| 55 | +# Acknowledgements |
| 56 | + |
| 57 | +The idea and design for this list is inspired from Denys Dovhan's awesome project [wtfjs](https://github.com/denysdovhan/wtfjs). |
| 58 | + |
| 59 | +* Reddit Link |
| 60 | +* Youtube video link |
| 61 | + |
| 62 | +# 🎓 License |
| 63 | + |
| 64 | +[![CC 4.0][license-image]][license-url] |
| 65 | + |
| 66 | +© [Satwik Kansal](https://satwikkansal.xyz) |
| 67 | + |
| 68 | +[license-url]: http://www.wtfpl.net |
| 69 | +[license-image]: https://img.shields.io/badge/License-WTFPL%202.0-lightgrey.svg?style=flat-square |
| 70 | + |
0 commit comments