In this task, you are given inputs i and A, where i is an integer and A is a list. You need to list all the elements of A preceding the last i elements. i will always have a value less than the length of A.
2, ['s', '7603', 't', 'd', '2781', '9593', '5105', '903', 'v', 'k', '5087', 'D', 'v', '8051', '7549', '8873', 'y', '563', 'G', '8817', 'c', '6635']