https://github.com/gpetepg/python_tips
Some Python tips for beginner to intermediate users. Also used as a personal cheat sheet. Featured here https://bit.ly/2ZaV4Pl
https://github.com/gpetepg/python_tips
beginner intermediate jupyter-notebook python python3 python36 python38 tips-and-tricks
Last synced: 5 months ago
JSON representation
Some Python tips for beginner to intermediate users. Also used as a personal cheat sheet. Featured here https://bit.ly/2ZaV4Pl
- Host: GitHub
- URL: https://github.com/gpetepg/python_tips
- Owner: gpetepg
- License: mit
- Created: 2018-09-21T23:06:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-24T03:19:30.000Z (over 3 years ago)
- Last Synced: 2024-11-27T02:35:22.656Z (about 1 year ago)
- Topics: beginner, intermediate, jupyter-notebook, python, python3, python36, python38, tips-and-tricks
- Language: Jupyter Notebook
- Homepage:
- Size: 239 KB
- Stars: 156
- Watchers: 12
- Forks: 42
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.md
Awesome Lists containing this project
- awesome-earthobservation-code - Python_tips - Some Python tips for beginner to intermediate users. Also used as a personal cheat sheet. (Interesting Non EO parts Python / GEDI)
README
===========
Python Tips
===========
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.
Please clone or fork, the notebooks are meant to be interacted with. The TOC do not work on GitHub.
---------------------------------------------------------------------------------------------------
If the page notebooks won't load on GitHub view them here:
- `Python Tips `_.
- `Built-In-Libraries `_.
Note that these were written in Python 3 (3.8.X).
These files are .ipynb. It is a notebook document used by Jupyter Notebook, an interactive computational environment designed to help scientists work with the Python language (as well as many others e.g. R, Julia, Ruby, JavaScript).
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.
General Tips:
----------------------------------------
Topics
- Additional Operators
- Global
- Enumerate
- Comprehension; List, Set, Dict
Functions and Classes Topics:
----------------------------------------
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
Built-In Functions and Libraries Topics:
----------------------------------------
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
Random Tips:
----------------------------------------
- Random assortment of tips that did not fit the other notebooks