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, ['f', '6031', 'f', '9245', 'x', '4683', 'M', 'i', 'G', '2417', '7795', '2657', '8273', '1787', 'K', '5901', '6177', 'r', '8137', 'u', 'v', 'O', '6255', 'U', 'E', '9627', '6217']