The preferred mode for posting CircuitPython code is to use a SyntaxHighlighter Code block type, setting the “Code Language” to “Python” in the properties (on the right). That way the code can be cut and pasted, has line numbers, and colored keywords for legibility.

SyntaxHighlighter Code Block

while True:
    led.value = True
    print("On")
    time.sleep(1.0)

    led.value = False
    print("Off")
    time.sleep(1.0)

Plain “Code” Block Sample

The default “Code” block style isn’t very readable with this site template, see below. Please avoid this style.

while True:
    led.value = True
    print("On")
    time.sleep(1.0)

    led.value = False
    print("Off")
    time.sleep(1.0)