**write a python program to print sum of 3 consecutive numbers in a range in a list. for example we take input n = 8 so the program will print
[1+2+3,2+3+4,3+4+5,4+5+6+,5+6+7,6+7+8]**
means the output should be
=[6,9,12,15,18,21]
i am new in programming, my code is:-

```
arr=[]
N=int(input("enter the value of N"))
def lst(arr):
    for i in range(N):
        x=[i]+[i+1]+[i+2]
        arr.append(x)
lst(arr)
print(arr)

```