''' index of list items '''

# Find item by index

index_list = ['index1', 'index2']
print(index_list[0] + " " + index_list[1])    # list index start from 0
print(index_list[-1] + " " + index_list[-2])   # reverse index start from -1

# Find part of list by index

elem_in_list = ['element1', 'element2', 'element3', 'element4', 'element5', 'element6']
print(elem_in_list[1:4])        # printing elements 2,3,4
print(elem_in_list[:2])      # automate
print(elem_in_list[4:])