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))
The most recommended way to do is to use format method. Read more about it here
format
a, b = 1, 2 print("a={0},b={1}".format(a, b))