LoggingΒΆ
Use print when you want to display a help statement for
a command line application.
For the rest,
use the logging library.
No:
def f():
print('Loading the data...')
...
print('Computing')
...
Yes:
def f():
logging.debug('Loading the data...')
...
logging.debug('Computing')
...