3 Escaping Characters


#1

I don't know what I'm doing wrong but I just can't get it.... It seems like it would be simple. HELP !!!!
This is what I'm suppose to use
'This isn't flying, this is falling with style!'

This is what I did with the sentence:
/'This isn/'t flying, this is falling with style!'/

This is my error
Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: invalid syntax (python, line 3)


#2

Hi,

Try a backslash not a front slash thats what worked for me


#3

hi there
i do exactly that
'This isn\'t flying, this is falling with style!'
but still File "python", line 3
'This isn't flying, this is falling with style!'
^
SyntaxError: invalid syntax

what else


#4

Hi @landen_lewis ,

I think @alexhandleyah04 is referring to the first and final slash characters that you have in this line, as well as the embedded slash ...

/'This isn/'t flying, this is falling with style!'/

There should only be an escape character immediately before the embedded ' mark, and it should be a backslash, as follows ...

'This isn\'t flying, this is falling with style!'

#5

2 posts were split to a new topic: Escaping Characters


#6