• Register
1 vote
51 views

Problem:

I was trying to run a simple python program but I am getting this error “syntaxerror: unexpected character after line continuation character” every time. What could be the reason and possible solution?

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

 

12 7 7
15,250 points

Please log in or register to answer this question.

1 Answer

2 votes

Solution:

I think you’ve messed up between backslash (\) and frontslash (/). Backslash (\) used for a new line or white space and the frontslash (/) used for division.

13 9 6
94,240 points

Related questions

0 votes
1 answer 8 views
8 views
Problem: I am having problems with this Python program I am creating to do maths, working out and so solutions but I'm getting the syntax error: "unexpected character after line continuation character in python”
asked Mar 16 ummesalma 25.2k points
0 votes
1 answer 7 views
7 views
Problem: My Python program is giving below error: python unexpected character after line continuation character
asked Mar 13 Wafa Abu Yousef 6.1k points
0 votes
3 answers 2.1K views
2.1K views
Problem : My Python program is giving below error python unexpected character after line continuation character
asked Oct 22, 2019 peterlaw 6.9k points
0 votes
1 answer 10 views
10 views
Problem: I need to append this div to another div, but it gives me this error : Syntaxerror: json.parse: unexpected character at line 1 column 2 of the json data Any ideas?
asked Mar 22 ummesalma 25.2k points
0 votes
1 answer 601 views
601 views
Problem : I have spent over the 10 hours in finding the exception or the special character to find in the code but I am unable to find it. I have already checked every similar messages in here. I am facing below error: Syntaxerror: json.parse: unexpected character at line 1 ... my form after that I am sending all the inputs to the main.js to validate it. So, I am just looking for the third-eye.
asked Dec 23, 2019 alecxe 7.5k points
0 votes
1 answer 26 views
26 views
Problem: I have a script that runs a few times a second and pulls the data and the webpage loads it. The problem is, after about 20+ times of the server reading the json file, eventually it will throw this error. Syntaxerror: json.parse: unexpected end of data at line 1 column 1 of the json data What exactly went wrong here?
asked Mar 22 ummesalma 25.2k points
0 votes
1 answer 663 views
663 views
Problem : Currently I am facing some issues. I am trying to use C# with Json.NET. The problem is that I always get following error: {"Unexpected character encountered while parsing value: e. Path '', line 0, position 0."} So the way I amm using Json.NET is ... as follows: {"Unexpected character encountered while parsing value: e. Path '', line 0, position 0."} Does anyone have any solution on it?
asked Dec 9, 2019 alecxe 7.5k points
0 votes
1 answer 4 views
4 views
Problem: Can someone help me figure out how to fix this problem,"uncaught syntaxerror unexpected end of input."
asked Apr 6 Humaira ahmed 15.2k points
0 votes
1 answer 7 views
7 views
Problem: After creatuing an application which is not loaded with much information except Signup but I got this error» Syntaxerror unexpected token o at object.parse native.
asked Mar 23 PkGuy 13.1k points
0 votes
1 answer 13 views
13 views
Problem: In a React app component that handles Facebook-like content feeds, I am running into an error: Feed.js:94 undefined "parsererror" "SyntaxError: Unexpected token < in JSON at position 0 Thanks
asked Mar 22 ummesalma 25.2k points