How to add an integer to each element in a list?

new_list = [x+1 for x in my_list]

Leave a Comment