io.console
IOConsole
class IOConsole(IOStream)
A console input/output stream.
print
def print(*objects: Any,
sep: str = " ",
end: str = "\n",
flush: bool = False) -> None
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
def input(prompt: str = "", *, password: bool = False) -> str
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.