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.
8, ['n', '7399', 't', 'C', '7463', 'e', 'y', '6057', 'd', '2073', 'd', '5093', '1171', 'G', '2051', '1', 'c', '3035', 'D', '747', '497', '4635', '7953', 'C', '8723', 't', '5839', '1963', 't', 'a']