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.
11, ['g', '7687', '4877', 'H', '2667', '969', '2613', 'u', '1033', 'Z', '7935', 'e', '9569', 't', '6321', 'h', '6803', 'D', '1201', 'Z', '4287', 'J', '6541']