Instructions: In this task, you are given a list of integers and an integer k. You need to add integer k to each element in the list and return the updated list.
Input: [227, 162, 173, 289, 292, 30, 184, 169, 68, 283, 139, 76, 153, 171, 278, 73, 157, 150, 273, 105] k=19
Output:
[246, 181, 192, 308, 311, 49, 203, 188, 87, 302, 158, 95, 172, 190, 297, 92, 176, 169, 292, 124]