Results for “split function syntax python example site:docs.python.org code”
docs.python.org
Built-in Types — Python 3.12.16 documentation
Code objects are used by the implementation to represent “pseudo-compiled” executable Python code such as a function body. They differ from function objects because they don’t contain a reference to their global execution environment.
docs.python.org
string — Common string operations — Python 3.15.2 documentation
Source code: Lib/string/__init__.py String constants: The constants defined in this module are: Custom string formatting: The built-in string class provides ...
docs.python.org
Built-in Functions — Python 3.12.16 documentation
This function supports dynamic execution of Python code. object must be either a string or a code object. If it is a string, the string is parsed as a suite of Python statements which is then executed (unless a syntax error occurs).
docs.python.org
re — Regular expression operations — Python 3.15.2 documentation
Source code: Lib/re/ This module provides regular expression matching operations similar to those found in Perl. Both patterns and strings to be searched ...
docs.python.org
8. Compound statements — Python 3.15.2 documentation
... in the body of the function, for example: Copy def whats_on_the_telly ... code in its __anext__ method. The async for statement allows convenient ...
docs.python.org
11.2. os.path — Common pathname manipulations — Python 3.5.10 ...
path — Common pathname manipulations¶. Source code: Lib ... This is the second element of the pair returned by passing path to the function split() .
docs.python.org
7. Input and output — Python 3.15.2 documentation
In the following code block there are two examples of how to format variables: ... This is particularly useful in combination with the built-in function vars() , ...