Why learn Python?
- Free data!
- Fast, doesn’t crash
- Clean code, functions
- Existing libraries
- Lots of documentation and online help
Installation
- Python
- Python 2.7 vs. 3
- Homebrew for installing software
- Pip
- Pyenv or pipenv for virtual environments
- Sublime Text or Atom text editors
- Bash/shell
- Vim or Emacs
Exercises
All exercises and solutions are here.
An online Python interpreter is here.
Tips
- Write lots of comments
- Print output
- Test with subsamples:
- Google every issue
- sudo
- Do a fun side project, e.g. Kaggle competition