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, ['9861', 'h', '87', 'z', '805', 'M', '513', '9101', '1595']
9861, h, 87, z, 805, M

6, ['3805', '1383', '8371', 'k', '7623', '8749', '1679', 'A', 'K', 'Z', 'd', 'M', '5925', 'S', '631', 'I', '9365', '1319', '4567', 'z', '3507']
3805, 1383, 8371, k, 7623, 8749, 1679, A, K, Z, d, M, 5925, S, 631

6, ['c', '6595', '9507', 'K', 'R', 'd', 'J', '3637', '565', 'J', 'I', '8453', '1089', 'R', 'D', 'D', 't', '5953', 'r', '8047', '1889', '2715', 'v', '2023']

c, 6595, 9507, K, R, d, J, 3637, 565, J, I, 8453, 1089, R, D, D, t, 5953