def foo(): return "foo" c = "string" "a%sf_str%s" % (foo(), c)