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.
4, ['Q', '215', 'p', 'V', '1537', '3259', 'w', 'M', '1161', 'w', '4911', '7583', '9749', 'h', 'G', '6405', 'q', '8491', 'Z', 'j', '3855', 'd', 'm', 'o', 'c', '9057', 'z']