Files
Learn-Python-Programming-Th…/ch11/custom.py
T
adii1823 3cebc2fe91 ch11
2021-10-28 17:40:37 +05:30

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
"""