from machine import Pin, ADC, PWM
import time
lista = [ 10, 1000, 10000, 20000, 50000, 65000] # se crea un listado de valores PWM dentro de una lista
rojo = PWM(Pin(0)) #se define el pin 0 como una salida PWM
for dato in lista: # se crea un for para recorrer la lista
rojo.duty_u16(dato)
print(dato)
time.sleep(1)
for i in range(10,30,5): # crea un for para agregar un termino a la lista
lista.append(i)
print(lista)
time.sleep(1)
lista.insert(0, 654321)
valores = [5,6,7]
lista.extend(valores)
lista.index(1000)
lista.remove(1000)
lista.pop()
lista.tuple()