import logging import sys logging.error('Python version: {}'.format(sys.version)) # [logging-format-interpolation]