In this task, you are given inputs i and A, where i is an integer and A is a list. You need to output the first i elements of A, starting with the 1st element in A. i will always have a value less than the length of A

1, ['y', 'i', '1227', 'f', 'r', 'R', 'J', '3731', '559', 'c']
y

2, ['y', '1717', '1977', 'A', '8865', '2343', 'G']
y, 1717

9, ['n', '7777', 'C', '1303', 'z', 'O', 'I', 'c', '2899', 't', 'r', '4201', '5511', 'a', 'M', '6731', 'K', 'I', '2123']

n, 7777, C, 1303, z, O, I, c, 2899