diff --git a/py/log-test.py b/py/log-test.py new file mode 100755 index 0000000..552f17d --- /dev/null +++ b/py/log-test.py @@ -0,0 +1,11 @@ +#!/usr/bin/python3 +import logging + +logging.basicConfig(format='%(levelname)s: %(message)s',level=logging.DEBUG) + +logging.debug('Debug message') +logging.info('Info message') +logging.warning('Warning message') +logging.error('Error message') +logging.critical('Critical message') + diff --git a/py/string-test.py b/py/string-test.py new file mode 100755 index 0000000..77d9835 --- /dev/null +++ b/py/string-test.py @@ -0,0 +1,7 @@ +#!/usr/bin/python3 + +msg = "" +msg += "Line 1" +msg += "Line 2" + +print(msg)