wtfpython/CONTRIBUTING.md

859 B

All patches are welcome. If you're ading a new example, please do create an issue before submitting a patch.

You can use the following template for adding a new example:

  ### Some fancy Title

  ```py
  # Setting up the code.
  # Preparation for the magic...

Output (Python version):

>>> triggering_statement
Probably unexpected output

(Optional): One line describing the unexpected output.

Note: All the examples mentioned below are run on Python 3.5.2 interactive interpreter unless explicitly specified.

💡 Explanation:

  • Brief explanation of what's happening and why is it happening.
    Setting up examples for clarification (if necessary)
    
    Outupt:
    >>> trigger # some example that makes it easy to unveil the magic
    # some justified output