GoConqr has a new look! Let us know what you think.

Module 12 of 20 · Text

The print() function - the escape and newline characters 2

David Khieu

The print() function - the escape and newline characters

This convention has two important consequences:

  1. If you want to put just one backslash inside a string, don't forget its escaping nature - you have to double it, e.g., such an invocation will cause an error:
    print("\")
    while this one won't"
    pritn("\\")
  2. Not all escape pairs (the backslash coupled with another character) mean something. 
    Experiment with your code in the editor, run it and see what happens. 

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?