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, ['c', '797', 'Q', 'A', '4747', '8213', 'q', '5571', '9245', '8859', 'u', '2607', 'g', 'x', 'f', 'O', '9141', '6085', '2091', 'r', 's', '3705', 'Y', '3881']