Escape Sequences in Strings Query

Hi all,

Are you able to let me know why this doesn’t work when the output appears the same as the instructions? The result when ran shows the following:

There should be a newline character between

SecondLine

and

ThirdLine
myStr

should only contain characters shown in the instructions

hi Dyfan, welcome this forum!

Are you working on an FCC exercise? Your topic doesn’t provide much information so if you can give a link to the exercise you are working on that would be a good first step here.

Sorry! Yes it is an exercise :slight_smile: Here is the link:

Please post your actual code instead of a picture. Thanks

you do not need the \r for this exercise

1 Like

Thanks, that’s solved it!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.