-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput()
More file actions
17 lines (11 loc) · 734 Bytes
/
Copy pathinput()
File metadata and controls
17 lines (11 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
input()
input(prompt)
https://docs.python.org/3/library/functions.html#input
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.