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?

asked Sep 28, 2016 at 3:54
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.

answered Sep 28, 2016 at 3:56
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 ----------------------------------^
answered Sep 28, 2016 at 3:57

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.