1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-05-30 01:48:04 +02:00
wtfpython/wtfpy.md
2017-08-27 00:01:11 +05:30

2.0 KiB

What the f*ck Python!

WTFPL 2.0 [![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

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:

setting up
>>> 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.

  • Reddit Link
  • Youtube video link

🎓 License

CC 4.0

© Satwik Kansal