#-------------------------------------------------------------
# LAB Name: Raspberry Pi Pico - MicroPython (Project Template)
# Author: Khaled Magdy
# For More Info Visit: www.DeepBlueMbedded.com
#-------------------------------------------------------------
from machine import Pin
from time import sleep
BUILTIN_LED = Pin(25, Pin.OUT)
while True:
list1 = [1,2,3,4,5,6]
print(list1[0]) #1
print(list1[1]) #2
print(list1[-1]) #6
print(list1[-2]) #5