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.
10, ['p', '2459', 'G', 'G', '7031', 'O', 'e', '9111', '8571', '3393', 'q', 'I', 'Q', '3541', '9117', 'g', '4069', 'q', '315', '7619']