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, ['647', 'j', '7343', '2081', 'S', 'H', 'd', 'U', 'j', '9049', 'x', '2591', '9477', '7135', 'A', 'I', '8179', 'U', '5479', '6441', 'c', '6357']