Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A = [1, 3, 5, 6, 10]
- B = []
- for i in range(1,len(A)-1):
- B.append(A[i-1]+A[i+1])
- print(B)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement