This Python Cheatsheet is based on the book Automate the Boring Stuff with Python and many other sources.
Anyone can forget how to make character classes for a regex, slice a list or do a for loop. This Python cheatsheet tries to provide basic reference for beginner and advanced developers, lower the entry barrier for newcomers and help veterans refresh the old tricks.
bute
All contributions are welcome!
-
Install pnpm package manager.
Linux/macOS
curl -fsSL https://get.pnpm.io/install.sh | sh -
On Windows (PowerShell)
iwr https://get.pnpm.io/install.ps1 -useb | iex
-
Clone the project, change to the
next
branch and install the dependencies.git clone https://github.com/wilfredinni/python-cheatsheet.git cd python-cheatsheet git checkout next pnpm install
-
Create a new branch from
next
.git branch fix_bug git checkout fix_bug
-
Change/upgrade/add the changes you want.
-
Update the
README
if needed. -
Add
,commit
andpush
your changes to Github.git add . git commit -m 'Add succinct explanation of what changed' git push origin fix_bug
-
Open a pull request.
This project and everyone who participates in it is governed by the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to services@github.com.