Built-in functions — Python 3.15.2 documentation
Return the string representing a character with the specified Unicode code point. For example, chr(97) returns the string 'a' , while chr(8364) ...
Return the string representing a character with the specified Unicode code point. For example, chr(97) returns the string 'a' , while chr(8364) ...
Return the string representing a character whose Unicode code point is the integer i. For example, chr(97) returns the string 'a', while chr(8364) returns the string '€'. This is the inverse of ord(). The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in base 16).
For example, 3+4j < 5+7j isn't a valid comparison. 5.1.1. Using Lists as Stacks¶. The list methods make it very easy to use a list as ...
Python can manipulate text (represented by type str, so-called “strings”) as well as numbers. This includes characters “!”, words “rabbit”, names “Paris”, sentences “Got your back.”, etc.
Python Frequently Asked Questions ». Design and History FAQ.The hash code varies widely depending on the key and a per-process seed; for example, 'Python' could hash to -539294296 while 'python', a string that differs by a single bit, could hash to 1142331976.
The environment where top-level code is run. Covers command-line interfaces, import-time behavior, and ``__name__ == '__main__'``. _thread ...
Textual data in Python is handled with str objects, or strings. Strings are immutable sequences of Unicode code points. String literals are written in a variety of ways: Single quotes: 'allows embedded "double" quotes'.
Source code: Lib/os.py This module provides a portable way of using operating system dependent functionality. If you just want to read or write a file see ...
It helps to have a Python interpreter handy for hands-on experience, but all examples are self-contained, so the tutorial can be read off-line as well. For a description of standard objects and modules, see Python built-ins reference and The Python standard library.
both raise SyntaxError ). For code that cannot use the lazy keyword directly (for example ... tbl = { key = "a string", moar-tbl = { key = 1, }, }. Add \xHH ...
Symbols · comment, [1], [2] · in doctests · in printf-style formatting, [1] · in regular expressions · in string formatting · source encoding declaration.