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, ['H', '3515', 'h', '4061', '3037', '4251', '9951', '9195', '8561', 'Q', '3055', '2565', '5925', '6579', 't', 'y', 's', '4879', 's', 'd', '6903', '7813', 'm']