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.
1, ['8283', 'S', 'h', '8795', '3759', 'l', '6445', '9469', '2155', '4507', 'R', '3791', 'Q', '7121', '1507', '6635', '9299', '5243', 'a', '827', '2711', '2641']