x = [np.sqrt(2)/10,np.sin(3),np.exp(-2)+.006] tmpX = ", ".join(['x('+str(i+1)+") = %.3f" % e for i, e in enumerate(x)]) print(tmpX)