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.
12, ['J', 'f', 'p', 'U', '9385', 'G', '9165', 'U', 'Z', 'd', '1235', 'H', 'p', '3863', 'j', '4981', 'W', '3109', '7507', 'Y', 'p', 'Q', '2069', '3331', 'O', '5817']