
7. Input and Output — Python 3.13.3 documentation
23 hours ago · Input and Output¶ There are several ways to present the output of a program; data can be printed in a human-readable form, or written to a file for future use. This chapter will discuss some of the possibilities.
Built-in Functions — Python 3.13.3 documentation
23 hours ago · Built-in Functions¶ The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.
fileinput — Iterate over lines from multiple input streams - Python
1 day ago · You can control how files are opened by providing an opening hook via the openhook parameter to fileinput.input() or FileInput(). The hook must be a function that takes two arguments, filename and mode, and returns an accordingly opened file-like object.
subprocess — Subprocess management — Python 3.13.3 …
23 hours ago · Source code: Lib/subprocess.py The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace seve...
typing — Support for type hints — Python 3.13.3 documentation
1 day ago · Type predicate functions are user-defined functions that return whether their argument is an instance of a particular type. TypeGuard works similarly to TypeIs , but has subtly different effects on type checking behavior (see below).
Functional Programming HOWTO — Python 3.13.3 documentation
In a functional program, input flows through a set of functions. Each function operates on its input and produces some output. Functional style discourages functions with side effects that modify internal state or make other changes that aren’t visible in the function’s return value.
3. An Informal Introduction to Python
1 day ago · In the following examples, input and output are distinguished by the presence or absence of prompts (>>> and … ): to repeat the example, you must type everything after the prompt, when the prompt appears; lines that do not begin with …
math — Mathematical functions — Python 3.13.3 documentation
1 day ago · This module provides access to the mathematical functions defined by the C standard. These functions cannot be used with complex numbers; use the functions of the same name from the cmath module if...
6. Modules — Python 3.13.3 documentation
23 hours ago · You may also want to use a handy function that you’ve written in several programs without copying its definition into each program. To support this, Python has a way to put definitions in a file and use them in a script or in an interactive instance of the interpreter.
io — Core tools for working with streams — Python 3.13.3 …
2 days ago · The io module provides Python’s main facilities for dealing with various types of I/O. There are three main types of I/O: text I/O , binary I/O and raw I/O . These are generic categories, and various backing stores can be used for each of them.