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

7, ['U', 'P', 'd', '8355', '6819', 'x', 'Q', 'e', 'R', 'H', '2257', 'o', '1669', 'R', '2281', '253', 'j', '8109', '689', '4897']
U, P, d, 8355, 6819, x, Q

1, ['C', '5207', 'D', 'p', 'o']
C

2, ['8841', 'A', 'C', '3407', '5959', '8501', 'N', '6561', '6445', '9141', 'D']

8841, A