From e90efc7c3ed67fd17413811a5d320ef489d74464 Mon Sep 17 00:00:00 2001 From: Satwik Kansal Date: Sun, 27 Aug 2017 00:01:11 +0530 Subject: [PATCH] Initial Commit --- wtfpy.md | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 wtfpy.md diff --git a/wtfpy.md b/wtfpy.md new file mode 100644 index 0000000..536d1ae --- /dev/null +++ b/wtfpy.md @@ -0,0 +1,70 @@ +# What the f*ck Python! + +[![WTFPL 2.0][license-image]][license-url] +[![NPM version][npm-image]][npm-url] + +> A collection of tricky Python examples + +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! + +# Table of Contents + + + +**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)* + +- [Checklist](#checklist) +- [👀 Examples](#-examples) + - [Example heading](#example-heading) + - [💡 Explanation:](#-explanation) +- [Contributing](#contributing) +- [Acknowledgements](#acknowledgements) +- [🎓 License](#-license) + + + +# Checklist + +[ ] https://www.youtube.com/watch?v=sH4XF6pKKmk +[ ] https://www.reddit.com/r/Python/comments/3cu6ej/what_are_some_wtf_things_about_python/ + +# 👀 Examples + +## Example heading + +One line of what's happening: + +```py +setting up +``` + +```py +>>> triggering_statement +weird output +``` + +### 💡 Explanation: + +* Better to give outside links +* or just explain again in brief + +# Contributing + +All patches are Welcome! Filing an issue first before submitting a patch will be appreciated :) + +# Acknowledgements + +The idea and design for this list is inspired from Denys Dovhan's awesome project [wtfjs](https://github.com/denysdovhan/wtfjs). + +* Reddit Link +* Youtube video link + +# 🎓 License + +[![CC 4.0][license-image]][license-url] + +© [Satwik Kansal](https://satwikkansal.xyz) + +[license-url]: http://www.wtfpl.net +[license-image]: https://img.shields.io/badge/License-WTFPL%202.0-lightgrey.svg?style=flat-square +