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, ['r', '6407', 'F', 'X', '8807', '2735', 'Y', '7645', '9795', 'D', 'y', '8631', 's', '9781', 'h', '3775', 'i', '3075', '5923', '3459']