mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-21 18:54:20 +01:00
Initial Commit
This commit is contained in:
commit
e90efc7c3e
70
wtfpy.md
Normal file
70
wtfpy.md
Normal file
@ -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
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
**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)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user