a = [0,1,2,3,4,5,6,7,8,9]

# Last element in array
print('last a element:',a[-1])
print(a[len(a) - 1])

# Slice array
print(a[2:6]) # slice array from index 2 to 6
print(a[2:]) # slice array from inde 2 till the end
print(a[:4]) # slice array up to index 4