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, ['1795', 'f', 'p', 'H', 'T', '9049', '7059', '6443', 'v', 'E', 'd', '9647', '2801', 'N', '4679', '2249', '7531', 'M', 'A', '1261', '1253', '7181', 'u', '5453', 'W', '6605', 'A']