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.
8, ['3441', 'u', '8103', 'Q', '1257', 'L', 'B', 'o', '2021', '3835', '5513', '2209', '9941', 'i', '5075', 'h', '4215', 'a', '4581']