Skip to content

Comments

Comments are lines in your code that are ignored by the interpreter. Use them to explain your code or leave notes for yourself and others.

Single-Line Comments

Start a comment with #:

# This is a comment
let x = 42  # This is also a comment

Comments help make your code more readable and maintainable.


Next: Advanced Topics