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.
3, ['Q', 'i', 'd', '8701', '8179', '7567', 'p', '8837', '2761', '4183', 'R', 'q', '8231', 'M', 'H', 'T', 'o', '9277', '6839', 'f', 'V', 'j', 'x', 'P', 'F', 'L', '7185', '1197', '9405', '7761']