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.
3, ['w', '2639', 'p', 'd', 'W', '9363', '2811', 'S', '8369', 'c', '2679', 'M', '4881', 'c', '51', '4983', 'Y', '773', 'E', '959', '4847']