io
io.console
IOConsole
A console input/output stream.
Print data to the output stream.
Arguments:
objects
any - The data to print.sep
str, optional - The separator between objects. Defaults to ” ”.end
str, optional - The end of the output. Defaults to ” ”.flush
bool, optional - Whether to flush the output. Defaults to False.
input
Read a line from the input stream.
Arguments:
prompt
str, optional - The prompt to display. Defaults to "".password
bool, optional - Whether to read a password. Defaults to False.
Returns:
str
- The line read from the input stream.