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:
objectsany - The data to print.sepstr, optional - The separator between objects. Defaults to " ".endstr, optional - The end of the output. Defaults to " ".flushbool, 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:
promptstr, optional - The prompt to display. Defaults to "".passwordbool, optional - Whether to read a password. Defaults to False.
Returns:
str- The line read from the input stream.