This makes it easier to print out multiple things at the same time without needing to do a bunch of string concatenation
Easy way you can remember it is thinking s for space and t for tab. When you want to print normally just call print. Otherwise add s for space or t for tab on the end of the function for the separators.
<3
That’s very useful, thanks!
Does it accept arrays as an argument? If so, that’d be super useful!
What you probably want to do is write a global logger where you reference the
print
variant inside the logger function once and can easily change it on a single place to suit how you want to look at logs.in python the print function has a
sep
argument that has a default value. Making three functions with a different spelling instead of one function with a variable argument seems kinda stinky here.Yeah that seems weird don’t it Personally i find a custom logger useful in my projects and not just because of this print weirdness.