In Python 2 I used:
print \"a=%d,b=%d\" % (f(x,n),g(x,n))
I\'ve tried:
print(\"a=%d,b=%d\") % (f(x,n),g(x,n))
A simpler one.
def printf(format, *values): print(format % values )
Then:
printf("Hello, this is my name %s and my age %d", "Martin", 20)