Computer Science, asked by kavyasri16, 5 months ago

N-int(input()
A list( map( int, input().split()))
print(A)
b []
l=len(A)
s1=[]
s2=[]
for i in range(0, int(1/2)):
s1.append(A[i])
for i in range(int(1/2),1):
s2.append(A[i])
print(s1)
print(s2)
p=[]
for i in range(0, int(1/2)):
p[i]=s1[i]*s2[int(1/2)-i-1]
sum=0
for i in range(0, int(1/2)):
sum=sum+p[i]
print(sum)
​What is the error in above code?

Answers

Answered by anjaligupta8c
0

Answer:

is it for python....................

Similar questions