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.
5, ['E', '5939', 'a', '8827', '8361', 'H', '317', 'd', '7815', '7105', '9479', 'e', 'i', 't', '7661', 'U', '2883', '1329', 'I', '3271', '8715', 's', '3661', '5221', '3713', 'I', '7297', '1565', 'b']