Some Python tips for beginner to intermediate users. Also used as a personal cheat sheet. Featured h...
These tips are for beginner to intermediate Pythonistas who have a bit of experience with the language. I focused on general Python tips that I think are good to know.
If the page notebooks won't load on GitHub view them here: -
Python Tips. - `Built-In-Libraries <https://nbviewer.jupyter.org/github/gpetepg/pythontips/blob/master/builtinlibrarytips.ipynb/>`.
Note that these were written in Python 3 (3.6)
I suggest downloading
Anaconda_. Anaconda is a free and open source distribution of the Python and R programming languages that aims to simplify package management and deployment. Jupyter Notebook is included in Anaconda.
I've included an inline
python tutor_. Just uncomment it and run the cell to use.
Please feel free to contribute, critique and comment.
Topics - Additional Operators - Global - Enumerate - Comprehension; List, Set, Dict
Functions - Generators - Args and Kwargs - Lambda Functions - Mutable Parameters - Decorators - Recursion Classes - Class Inheritance - "Private Methods" - Str and Repr - Static and Class Methods - Method Chaining - Property Decorators; Getters, Setters, Deleters
Functions - Map - Filter - Zip - Print Formatting - Multiline comments - Formatting - Str and Repr Libraries - Itertools - Infinite Itorators - Iterators Terminating On The Shortest Input Sequence - Combinatoric Iterators - Collections - Functools - Datetime - OS