Beginner syntax error problem


i dont understand why the following code doesn't work. can anyone help?
a = '+'
it says syntax error when i do this.


The line that causes the error is:


This is because 6a3 isn't defined. I assume you would want to output 6 + 3, and you would do it like this.

print("6" + a + "3")


T:relaxed:hanks, it works. I thought it was just substitution.