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.
4, ['s', '7473', '2807', '6051', 'r', '2551', 'G', '513', '1581', '6965', '2539', 'Z', 'r', 'D', 'Y', '7815', 'G', '4951', 'w', 'Y', 'n', '1241', 'G', '7071', '8743', '5163', 'M', '3891', '7885', '163']