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, ['F', 'v', '4841', 'r', '2817', 'I', '6057', '5467', '7095', '1441', 'S', 'O', 't', 'Z', '7305', '5301', '221', '1581', 'Y', 'R', 'Z', '3035', 'g', 'f', '5949', 'a']