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, ['w', 'd', '7027', '7477', 'T', '8477', '1959', '7569', '3743', '9985', 'L', 'N', '4305', '553', 'k', '293', '6939', '5389']