from machine import Pin from time import sleep leds = [2,3,4,5,6] [(Pin(led, Pin.OUT)) for led in leds]