I have this list of numbers
list1 = [15,27,48,70,83]
I want to have the output
list1 = [12,13,14,15,24,25,26,27,45,46,47,48,67,68,69,70,80,81,82,83]
I know I can do this for each number and then merge the list together and sort them
for i in range(len(list1)):
list1[i] = list1[i] - 1
Is there a faster way I can do this?