I\'m trying to do something like this:
subs = \'world\' \"Hello {[subs]}\"
in Python 3.
I can\'t quite figure out the syntax (having co
You can use both % and format - non of them is deprecated
subs = 'world' print ("hello %s" % subs) print ("hello {}".format(subs)) print ("hello {subs}".format(**locals()))
enjoY