The unofficial CircuitPython Reference

comments

description

Comments allow for additional description in programs. They are common to most programming languages.

syntax

Inline Comments:

Inline comments are made with a #

# this is an inline comment

Block Comments:

Block comments are not directly supported but can be done with undeclared string literals like this:

"""
This is an undeclared string literal.
It uses three quotes at the beginning
and three quotes at the end.
"""

methods

parameters

returns

example code

serial output:

see also: