fboaventura / python-cheatsheet

Basic Cheat Sheet for Python (PDF, Markdown and Jupyter Notebook)

Home Page:https://www.pythoncheatsheet.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Cheatsheet


This Python Cheatsheet is based on the book Automate the Boring Stuff with Python and many other sources.

Getting Started

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.

Table of Content

Cheatsheet Modules
Python Basics Datetime Module
Built-in Functions Itertools Module
Control Flow Json Module
Functions Random Module
Lists and Tuples Os Module
Dictionaries Pathlib Module
Sets Shelve Module
Comprehensions Zipfile Module
Manipulating Strings
String Formatting
Regular Expressions
File and directory Paths
Reading and Writing Files
JSON and YAML
Exception Handling
Debugging
Args and Kwargs
Context Manager
__main__
setup.py
Dataclasses
Virtual Environment

About

Basic Cheat Sheet for Python (PDF, Markdown and Jupyter Notebook)

https://www.pythoncheatsheet.org

License:MIT License


Languages

Language:Vue 65.1%Language:TypeScript 17.0%Language:CSS 15.2%Language:JavaScript 1.8%Language:HTML 0.9%