🔵 🔵 🔵


Primary

၊၊||၊|။

input() ⚬ᵖʸ|Documentation|1st|20260122201738-00-⌔

Built-in Functions — Python 3.14.2 documentation#input

input()

input(prompt,/)

If the prompt argument is present, it is written to standard output without a trailing newline. The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, EOFError is raised. Example:

>>> s = input('--> ')
--> Monty Python's Flying Circus
>>> s
"Monty Python's Flying Circus"

If the readline module was loaded, then input() will use it to provide elaborate line editing and history features.

Raises an auditing event builtins.input with argument prompt before reading input

Raises an auditing event builtins.input/result with the result after successfully reading input.

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •