tprint¶
-
hhpy.main.tprint(*args, sep: str = ' ', **kwargs)[source]¶ Wrapper for print() but with a carriage return at the end. This results in the text being overwritten by the next print call. Can be used for progress bars and the like.
Parameters: - args – arguments to print
- sep – separator
- kwargs – passed to print
Returns: None
Examples
>>> tprint('Hello World') 'Hello World'
>>> tprint(1) >>> tprint(2) 2