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.
6, ['o', 'w', '6087', '5025', 'S', 'v', '1571', '6271', '3675', 'q', '8117', '3243', '2317', '7947', 'x', '5011', 'B', '3441', '1765', 'd', '7489', '4821', '2761', 'p', '2679', '6103', 'v']