Reference
Quick-lookup documentation for Python built-ins, standard-library modules, and core data-type methods.
Built-in Functions
Python built-in functions available without imports.
abs() aiter() all() anext() any() ascii() bin() bool() breakpoint() bytearray() bytes() callable() chr() classmethod() compile() complex() delattr() dict() dir() divmod() enumerate() eval() exec() filter() float() format() frozenset() getattr() globals() hasattr() hash() help() hex() id() input() int() isinstance() issubclass() iter() len() list() locals() map() max() memoryview() min() next() object() oct() open() ord() pow() print() property() range() repr() reversed() round() set() setattr() slice() sorted() staticmethod() str() sum() super() tuple() type() vars() zip()
Dictionary Methods
Methods available on Python dict objects.
List Methods
Methods available on Python list objects.
Modules
Popular standard-library modules and how to use them.
argparse ast asyncio base64 bisect calendar collections concurrent.futures configparser contextlib copy csv dataclasses datetime decimal difflib enum fractions functools gc module glob gzip hashlib heapq html http inspect io module ipaddress itertools json logging math multiprocessing operator os module os.path pathlib pickle platform pprint queue random re module shutil signal socket sqlite3 statistics string struct subprocess sys tarfile tempfile textwrap threading time timeit traceback typing unittest urllib.parse uuid warnings weakref zipfile zoneinfo
Set Methods
Methods available on Python set objects.
String Methods
Methods available on Python str objects.
str.capitalize() str.casefold() str.center() str.count() str.encode() str.endswith() str.expandtabs() str.find() str.format_map() str.format() str.isalnum() str.isalpha() str.isascii() str.isdecimal() str.isdigit() str.isidentifier() str.islower() str.isnumeric() str.isprintable() str.isspace() str.istitle() str.isupper() str.join() str.ljust() str.lower() str.lstrip() str.maketrans() str.partition() str.removeprefix() str.removesuffix() str.replace() str.rfind() str.rjust() str.rpartition() str.rsplit() str.rstrip() str.split() str.splitlines() str.startswith() str.strip() str.swapcase() str.title() str.translate() str.upper() str.zfill()
Tuple Methods
Methods available on Python tuple objects.