from machine import Pin
import utime

pin = [6,7,8,9,10,11,12,13,14,15]
led= []
for i in range(10):
    led.append(None)
    led[i] = Pin(pin[i], Pin.OUT)

while True:
    for i in range(10):
        led[i].toggle()
        utime.sleep(0.2)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT