Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Newline | Strings
Introduction to Python | Mobile-Friendly
course content

Contenido del Curso

Introduction to Python | Mobile-Friendly

Newline

In the previous chapter, you called on the print() function two times since you wanted to output two lines of text. Does this mean that we need a separate function for each line that we want to output? Surely not.

There are many special symbols in character encoding. One of them represents a line's ending and a new one's start. This symbol is \n. For example, let's show how to output two lines with one print() function.

How many lines will be outputted after the code execution?

Selecciona la respuesta correcta

¿Todo estuvo claro?

Sección 3. Capítulo 4
We're sorry to hear that something went wrong. What happened?
some-alt