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.
5, ['8343', '819', '9485', '9517', 'd', 'u', 'A', 'N', 't', '1665', '2973', 'd', '2451', 'P', '6573', '8495', 'h', '4877', 'V', '7391', 'r', '5129', 'W', 'W', '9837', '545', '7071', '1803', 'X']