#!/usr/bin/env python3 foo = 1 bar = 2 print(f"{foo=} {bar=}")
>>> first = 'John' >>> last = 'Doe' >>> print '%(first)s %(last)s' % globals() John Doe