My issue
cook your dish here
for i in range(int(input())):
n=int(input())
a=list(map(int,input().split()))
m=
for i in range(n-1):
m.append(a[i]+a[i+1])
print(max(m))
what is wrong in this code…please help
My code
# cook your dish here
for i in range(int(input())):
n=int(input())
a=list(map(int,input().split()))
m=[]
for i in range(n-1):
m.append(a[i]+a[i+1])
print(max(m))
Problem Link: FIRSTANDLAST Problem - CodeChef