Quantcast
Channel: pycharm exercise "Character Escaping": task completed but wrong syntax - Stack Overflow
Browsing all 8 articles
Browse latest View live

Answer by Vincent.C for pycharm exercise "Character Escaping": task completed...

I have the same problem. The string is correct, but it still says I got the wrong string. Then I found that my answer is outside of the answer placeholder, just reset the task and the problem was...

View Article



Answer by erin s for pycharm exercise "Character Escaping": task completed...

Also, this worked for me:print("The name of this ice-cream is \"Sweet'n'Tasty\"")I'm new to coding (any kind), and so this is just a guess - the solution requires that you print only one string, so...

View Article

Answer by Matt Nona for pycharm exercise "Character Escaping": task completed...

The instructions in those lessons are not clear at all and someone from jetbrains should look into this.Even tho they don't mention it in the instructions, they also want you to edit the third...

View Article

Answer by H35am for pycharm exercise "Character Escaping": task completed but...

This problem can only be resolved if double quote is used(accoording to test file)Anyway, if you try this it will help you to finish succesfully:print("\'The name of this ice-cream is...

View Article

Answer by Eric Pierre for pycharm exercise "Character Escaping": task...

The last print statement uses single quotation marks, so the test wants you to only escape the single quotes that surround the 'n', so this line worked for me:print('The name of this ice-cream is...

View Article


Answer by Semen Vi for pycharm exercise "Character Escaping": task completed...

dont_worry = "Don't worry about apostrophes"print(dont_worry)print("The name of this ice-cream is \"Sweeet\"")print("The name of this ice-cream is \"Sweeet'n'Tasty\"")print("The name of this ice-cream...

View Article

Answer by Baart for pycharm exercise "Character Escaping": task completed but...

You have to escape " because you use it in your print but your ' does not need to be protected. Printing "\'n" and "'n" will output the same line but the escape, even if not visible, will generate...

View Article

pycharm exercise "Character Escaping": task completed but wrong syntax

I'm following the built-in tutorial in PyCharm Edu Edition and I'm stuck on Strings - Character Escaping.In the exercise I'm asked to print the following:The name of this ice-cream is...

View Article

Browsing all 8 articles
Browse latest View live


Latest Images