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.
10, ['2141', '6423', '3555', 'x', '9271', 'P', '5543', 'K', '5795', '1837', 'L', 't', 'D', '6179', 'a', '9321', '2715', '6369', '2457', '5875', '3243', 's', '5213', '3669', 'i', 'V', 'a', 'Y', '2067']