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.
2, ['5465', 'e', 'E', '8829', '8153', '2175', '9013', '429', '7761', 'h', 'U', '8325', '8763', 'Y', '7991', '9093', '2671', '8689', 'Q', '8901', 'd', 'U', 'Y', '4583', 'G', '2241', 'i', 'G', '8389']