GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - labex-labs/python-cheatsheet: A comprehensive Python cheat sheet with code examples, built-in functions, module references, and hands-on labs by LabEx.

BranchesTags
Open more actions menu

Latest commit

 

History

1,838 Commits
1,838 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
contributors
contributors
 
 
docs
docs
 
 
public
public
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
.eslintrc-auto-import.json
.eslintrc-auto-import.json
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.nvmrc
.nvmrc
 
 
.prettierrc
.prettierrc
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
GEMINI.md
GEMINI.md
 
 
LICENCE
LICENCE
 
 
README.md
README.md
 
 
eslint.config.js
eslint.config.js
 
 
index.html
index.html
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
postcss.config.js
postcss.config.js
 
 
renovate.json
renovate.json
 
 
tailwind.config.js
tailwind.config.js
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.node.json
tsconfig.node.json
 
 
tsconfig.worker.json
tsconfig.worker.json
 
 
vite.config.ts
vite.config.ts
 
 
worker.ts
worker.ts
 
 
wrangler.toml
wrangler.toml
 
 

Repository files navigation

Python Cheatsheet

labex.io/pythoncheatsheet | Contribute | Changelog

Python Cheatsheet is a comprehensive reference guide for Python developers of all skill levels. Based on the book Automate the Boring Stuff with Python and many other sources, this cheatsheet provides a quick reference for common Python tasks and concepts.

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.

Features

  • Comprehensive Coverage: From basics to advanced topics including built-in functions, control flow, data structures, and more
  • Built-in Functions Reference: Detailed documentation for all Python built-in functions
  • Module Documentation: Guides for popular Python modules like datetime, json, pathlib, itertools, and more
  • Blog Articles: In-depth articles about Python and its ecosystem
  • Easy Navigation: Well-organized sections with clear examples and explanations
  • Dark Mode Support: Beautiful UI with light and dark themes

Hands-on Labs on LabEx

Practice the concepts in this cheat sheet with interactive labs in your browser. Follow the Python Cheatsheet course on LabEx, or choose a lab below. Each topic links to its reference page on the Python Cheat Sheet website; the VS Code lab helps you get started with your development environment.

Topic Cheat Sheet Reference Practice
Use VS Code for Python Development — Start Lab
Python Basics Read reference Start Lab
Python Built-in Functions Read reference Start Lab
Python Control Flow Read reference Start Lab
Python Functions Read reference Start Lab
Python Lists and Tuples Read reference Start Lab
Python Dictionaries Read reference Start Lab
Python Sets Read reference Start Lab
Python Comprehensions Read reference Start Lab
Python String Manipulation Read reference Start Lab
Python String Formatting Read reference Start Lab
Python Regular Expressions Read reference Start Lab
Python File and Directory Path Manipulation Read reference Start Lab
Python Reading and Writing Files Read reference Start Lab
Python JSON and YAML Read reference Start Lab
Python Exception Handling Read reference Start Lab
Python Debugging Read reference Start Lab
Python Args and Kwargs Read reference Start Lab
Python Decorators Read reference Start Lab
Python Context Manager Read reference Start Lab
Python OOP Basics Read reference Start Lab
Python Dataclasses Read reference Start Lab
Python Packaging Read reference Start Lab
Python Main Function Read reference Start Lab
Python Virtual Environments Read reference Start Lab

Quick Links

  • View on GitHub: Drop a star on GitHub if you find this project useful
  • Contribute: Get to know how easy it is to contribute to the Python Cheatsheet
  • Blog: Read detailed articles about Python and its ecosystem
  • Changelog: See what is new, what got fixed, and what is coming

Contributing

Contributions are welcome! Please see the Contributing Guide for details on how to get started.

License

Content is licensed under MIT and maintained by the LabEx team.

More Cheatsheets

  • Ansible Cheatsheet
  • C Programming Cheatsheet
  • Comptia Cheatsheet
  • C++ Cheatsheet
  • CSS Cheatsheet
  • Cybersecurity Cheatsheet
  • Database Cheatsheet
  • Data Science Cheatsheet
  • DevOps Cheatsheet
  • Docker Cheatsheet
  • Git Cheatsheet
  • Go Cheatsheet
  • HTML Cheatsheet
  • Hydra Cheatsheet
  • Java Cheatsheet
  • JavaScript Cheatsheet
  • Jenkins Cheatsheet
  • Kali Cheatsheet
  • Kubernetes Cheatsheet
  • Linux Cheatsheet
  • Matplotlib Cheatsheet
  • MongoDB Cheatsheet
  • MySQL Cheatsheet
  • Nmap Cheatsheet
  • NumPy Cheatsheet
  • Pandas Cheatsheet
  • PostgreSQL Cheatsheet
  • Python Cheatsheet
  • React Cheatsheet
  • Redis Cheatsheet
  • RHEL Cheatsheet
  • Shell Cheatsheet
  • Scikit-learn Cheatsheet
  • SQLite Cheatsheet
  • Web Development Cheatsheet
  • Wireshark Cheatsheet

About

A comprehensive Python cheat sheet with code examples, built-in functions, module references, and hands-on labs by LabEx.

labex.io/pythoncheatsheet

Topics

cheatsheethands-onlabexlabslearning-pythonpythonpython-cheatsheetpython3reference

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

5.0k stars

Watchers

93 watching

Forks

1.3k forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.