Skip to content

input

const input: (prompt?: string) => string = builtins.input

Defined in: packages/pythonlib/src/index.ts:189

Read a line of input from the user.

Note: This function requires async implementation in JavaScript environments.

Parameters

ParameterTypeDescription
prompt?stringOptional prompt string to display

Returns

string

The input string

See

Python input()