Python · Function
input
input() optionally shows a prompt, reads one line from standard input, and returns it as a string without the trailing newline.
Last updated
Syntax
input()\ninput(prompt, /)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
printEOFErrorreadline