examples/strings/formatted_print.py
from __future__ import print_function, division

name = 'Foo'
print('Hello %s, how are you?' % name)
print('Hello {}, how are you?'.format(name))

# Hello Foo, how are you?
examples/strings/formatted_print_tuple.py
#!/usr/bin/env python

print("%s -> %s" % (23, 24))       # 23 -> 24

print("{} -> {}".format(23, 24))   # 23 -> 24