input

The input() function prompts the user for a single line of input. There is no default prompt. If the user attempts to enter more than a single line of input, then the excess input is ignored.

result = input (prompt);

prompt Required. Character string that contains the prompt displayed to the user.

result is a character string that contains the single line of input that is typed by the user.

result = input ("Please enter your first and last name:");

In this example, the prompt Please enter you first and last name: is displayed to the user. The resulting input is stored in result.

For more information, please see the following: