¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 12 de 20 · Texto

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. 

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?