Note that this site is in currently in version 1.0.0-alpha.   Some functionality may be limited.


The input() function asks the user for an input. It prompts the user to enter input through the keyboard and saves it. This function enables programs to respond to user input. For example, it can ask for the user’s name and print the name The input function can take a prompt within the parenthesis, which it will use to prompt the user to enter the input. For example:

>>> name = input("Enter your name here: ")
Enter your name here: Filipa
>>> name


Detailed article on input() from Stack Abuse.


Check out the input() tutorial on w3schools.

Lessons referring to this term