syntaxerror: "unexpected character after line continuation character in python" math

Arcticfoxx picture Arcticfoxx · Oct 17, 2011 · Viewed 156.3k times · Source

I am having problems with this Python program I am creating to do maths, working out and so solutions but I'm getting the syntaxerror: "unexpected character after line continuation character in python"

this is my code

print("Length between sides: "+str((length*length)*2.6)+" \ 1.5 = "+str(((length*length)*2.6)\1.5)+" Units")

My problem is with \1.5 I have tried \1.5 but it doesn't work

Using python 2.7.2

Answer

Kimvais picture Kimvais · Oct 17, 2011

The division operator is /, not \