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.
10, ['V', 'E', '8977', '6903', 'P', 'R', '5315', '9747', '4577', '585', 'v', '9557', '3947', 'L', '5285', 'S', '7671', 'u', '1449', '2517', '5447', '7645', 'a', '4131']