21 lines
414 B
Python
21 lines
414 B
Python
# custom.py
|
|
def debug(*msg, print_separator=True):
|
|
print(*msg)
|
|
if print_separator:
|
|
print('-' * 40)
|
|
|
|
|
|
debug('Data is ...')
|
|
debug('Different', 'Strings', 'Are not a problem')
|
|
debug('After while loop', print_separator=False)
|
|
|
|
|
|
"""
|
|
$ python custom.py
|
|
Data is ...
|
|
----------------------------------------
|
|
Different Strings Are not a problem
|
|
----------------------------------------
|
|
After while loop
|
|
"""
|