Detailed 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.
Problem:[155, 96, 86, 196, 13, 83, 157, 295, 240, 117, 247, 94, 98, 214, 56, 259, 251, 100, 237, 183] k=2
Solution:
[157, 98, 88, 198, 15, 85, 159, 297, 242, 119, 249, 96, 100, 216, 58, 261, 253, 102, 239, 185]