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.
6, ['J', '5505', 'r', '8413', '7665', 'X', '8479', '5169', '4111', '4517', 'M', 't', '1899', 'v', '6753', 't', 'C', '8983', '2881', '4233', 'r', '4463', 'v', 's', 'H', 'a', '5017', '5971', '3759', '5307']