Skip to content

rjasi/python-cheatsheet

Repository files navigation

python-cheatsheet

My curated list of useful python 3 tricks. Helpful for coding interviews and general day to day tasks. Impress your co-workers!

Unlike online docs and other sites, I don't bloat it with too many examples or long detailed explanations (not the point of this anyway). Web pages are also distracting. Having the code snippet is short sweet and simple. Try re-writing my code samples to really drill it into your head. This is more of a reference and not great to learn python.

Each group of tips has its own folder

Note: I update this on a rolling basis once I find something interesting and worth including.

What's included?

Note: This is a work in progress hence it is not complete! Below are the topics I hope to add soon.

  1. The standard library or anything that you don't need to pip install

  2. Standard modules that you don't need to pip install

    • os
    • sys
    • csv
    • collections
  3. Non standard but popular tools, frameworks, modules

    • pandas
    • numpy
    • pyspark
    • argparse
    • opencv
    • requests
  4. Random facts

  5. Bad examples from articles

Python Version

Tested with

  • Python 3.8.5

References

some books and websites

https://realpython.com/products/python-tricks-book/

Notes

There are probably mistakes and typos in the code but all examples will run, except for the ones that intentionally throw exceptions

TODO

  1. add jupyter notebooks

About

My curated list of useful python tricks. Helpful for coding interviews

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors