Definition: 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: [42, 122, 39, 289, 254, 274, 28, 97, 227, 58, 153, 159, 238, 141, 192, 105, 157, 211, 147, 151] k=11
Output:
[53, 133, 50, 300, 265, 285, 39, 108, 238, 69, 164, 170, 249, 152, 203, 116, 168, 222, 158, 162]