python/docs/stdlib

stdlib

dz / python / docs / stdlib

Subgraphs

Node Tree

Nodes

filter
content filter(function, iterable): Construct an iterator from those elements of iterable for which function is true. iterable may be either a sequence, a container which supports iteration, or an iterator.
children python/docs/reference/expressions/lambda, map (map/filter pairing)
parents python/docs/stdlib, leetcode/problems/125_valid_palindrome
hyperlink https://docs.python.org/3/library/functions.html#filter

map
content map(function, iterable, *iterables): Return an iterator that applies function to every item of iterable, yielding the results. If additional iterables arguments are passed, function must take that many arguments and is applied to the items from all iterables in parallel.
children python/docs/reference/expressions/lambda
parents python/docs/stdlib, leetcode/problems/125_valid_palindrome, filter
hyperlink https://docs.python.org/3/library/functions.html#map

data_types
content Data types modules
children data_types/collections
parents python/docs/stdlib
hyperlink https://docs.python.org/3/library/datatypes.html

int
content int() constructor base 2.
parents leetcode/problems/67_add_binary
remarks 2 args is base. int("11", 2) would be a value in binary,
hyperlink https://docs.python.org/3/library/functions.html#int

bin
content bin(): convert an integer number to a binary string prefixed with "0b".
parents leetcode/problems/67_add_binary
hyperlink https://docs.python.org/3/library/functions.html#bin

re
content re: regular expressions
children re/sub
parents python/docs/stdlib
hyperlink https://docs.python.org/3/library/re.html

math
content math
children math/gcd
hyperlink https://docs.python.org/3/library/math.html