For this Question: Given an array Arr of N integers, your task is to print the sum of elements present at even places and print the product of elements present at the odd places.

Note:- Consider the first element to start from 1.The first line of input contains a single integer N, the next line of input contains N space- separated integers depicting the values of the array.

Constraints:-
1 <= N <= 50
1 <= Arr[i] <= 5Print the sum of elements present at even places and print the product of elements present at the odd places separated by a space.Sample Input:-
5
1 2 3 4 5

Sample Output:-
6 15

Explanation:-
Sum = 2 + 4
Product = 1*3*5

Sample Input:-
2
4 6

Sample Output:-
6 4, I have written this Solution Code: def EvenOddSum(a, n):
    even = 0
    odd = 1
    for i in range(0,n):
 
        if i % 2 == 0:
            odd *= a[i]
        else:
            even += a[i]
     
    print (even,odd)
 
 

n = input()
n=int(n)
arr = [int(i) for i in input().split()] 

 
EvenOddSum(arr, n), In this Programming Language: Python, Now tell me if this Code is compilable or not?