Beginner syntax error problem


#1

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


#3

The line that causes the error is:

print(6a3)

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")

#4

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