syntaxerror unexpected character after line continuation character in python math

0 votes

16

4

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

Feb 16 in Python by surbhi
• 3,810 points
32 views

1 answer to this question.

0 votes
The division operator is /, not \
answered Feb 16 by CoolCoder
• 4,360 points

Related Questions In Python

0 votes
1 answer
0 votes
1 answer

What's the right way to concatenate files and appending the New Line character in Python? Text or binary mode?

It seems like you're using the wrong ...READ MORE

answered Nov 13, 2018 in Python by Anirudh
• 2,080 points

edited Dec 14, 2018 by Anirudh 791 views
0 votes
0 answers

How to do line continuation in python?

Is it same as the other programming ...READ MORE

May 30, 2019 in Python by Waseem
• 4,540 points
266 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 3,020 views
0 votes
1 answer
0 votes
1 answer

When to use "while" or "for" in Python

Yes, there is a significant distinction between ...READ MORE

answered Feb 9 in Python by CoolCoder
• 4,360 points
61 views
0 votes
1 answer

Sum a list of numbers in Python

So you want (element 0 + element ...READ MORE

answered Feb 14 in Python by CoolCoder
• 4,360 points
1,305 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP