2
 html_body += "<tr><td>{}</td><td>{}</td><td>{}</td><td>{}</td>".\format(p[0],p[1],p[2],p[3])
                                                                                           ^

SyntaxError: unexpected character after line continuation character

It looks normal. how should i fix it?

1
  • Put a newline after the `\`? Commented Sep 28, 2016 at 3:55

2 Answers 2

1
html_body += "<tr><td>{}</td><td>{}</td><td>{}</td><td>{}</td>".\form
                                                                ^

Right there is your problem. The backslash is the line-continuation character that the error mentions. Take it out.

Sign up to request clarification or add additional context in comments.

Comments

0
html_body += "<tr><td>{}</td><td>{}</td><td>{}</td><td>{}</td>".\format(p[0],p[1],p[2],p[3])
this backslash is not needed ----------------------------------^

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.