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.
7, ['U', 'Q', 'h', '4019', '9959', '5811', 'G', 'l', '3139', '6679', 'V', '5157', '8749', '465', 'W', '2275', '4597', '3963', 'e', '8955', '1789', 'o', '6277', '381', 'y', '3715', 'C']