How to Use Comments for Readability
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 necessary 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. If you put a #
before the print()
statement, that line won't run.
12# print('Message 1') print('Message 2')
Bedankt voor je feedback!
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Stel mij vragen over dit onderwerp
Vat dit hoofdstuk samen
Toon voorbeelden uit de praktijk
Awesome!
Completion rate improved to 1.64
How to Use Comments for Readability
Veeg om het menu te tonen
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 necessary 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. If you put a #
before the print()
statement, that line won't run.
12# print('Message 1') print('Message 2')
Bedankt voor je feedback!