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, ['1155', 'R', 'f', '7243', 'c', 'v', '8071', '8831', '5695', 'L', 'V', '5463', '7623', '8095', 'N', '8461', '3701', '3461', '2321', 'Y', '5503']