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.
12, ['G', 'G', '7497', '3241', 'I', 'I', '7519', '8621', 'G', '1449', '3585', '7083', 'R', '1023', 'W', 'C', '3851', 'T', '1379', '8925', 'y', '5527', 'h', '5495', 'u']