Please do what I suggested in your original question on this subject. What you have shown above is merely the output, not the code that produced it.
And if I pass that command string direct to Python I get:
\VSCode\Python>python -c "a = 4; print(\"Expected a = 4. Actual a = {} \".format(a))";
Expected a = 4. Actual a = 4