from machine import Pin
from time import sleep
# Create an array (list)
my_array = ["a", 20, 30, 40, 50]
# Loop through the array and print each element
for item in my_array:
print(item)
print(my_array.index(3))
sleep(1)
from machine import Pin
from time import sleep
# Create an array (list)
my_array = ["a", 20, 30, 40, 50]
# Loop through the array and print each element
for item in my_array:
print(item)
print(my_array.index(3))
sleep(1)