echo
⚓︎
Echo/Print
Functions:
-
echo–Print/echo function
echo
⚓︎
echo(
*objects: Any,
sep: str = " ",
end: str = "\n",
file: IO[str] | None = None,
flush: bool = False,
) -> None
Print/echo function
This function is basically the print function, and exists so that one can
deliberately print without using the built-in print function which is not
allowed by the dgpy-libs ruff rules.
Parameters:
-
(*objects⚓︎Any, default:()) –Item(s) to print/echo
-
(sep⚓︎str, default:' ') –Separator to print with
-
(end⚓︎str, default:'\n') –End of print suffix; defaults to
\n -
(file⚓︎IO[str] | None, default:None) –File like object to write to if not stdout
-
(flush⚓︎bool, default:False) –Flush the file after writing
Examples:
>>> echo("shellfish")
shellfish