Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Comments | First Acquaintance
Introduction to Python

Comments

Congratulations! As your code grows in size, it can become challenging to understand each part, even if you're the author.

That's why it's essential to get in the habit of leaving comments in your code. Comments help clarify the purpose or function of a specific code segment.

To designate a line as a comment, start it with the # symbol.

For instance,

But remember, if you put a # before the print() statement, that line won't run.

Now, onto our question:

How many lines will be displayed when you run the code below?

Selecciona la respuesta correcta

¿Todo estuvo claro?

Sección 1. Capítulo 2
course content

Contenido del Curso

Introduction to Python

Comments

Congratulations! As your code grows in size, it can become challenging to understand each part, even if you're the author.

That's why it's essential to get in the habit of leaving comments in your code. Comments help clarify the purpose or function of a specific code segment.

To designate a line as a comment, start it with the # symbol.

For instance,

But remember, if you put a # before the print() statement, that line won't run.

Now, onto our question:

How many lines will be displayed when you run the code below?

Selecciona la respuesta correcta

¿Todo estuvo claro?

Sección 1. Capítulo 2
some-alt