For this Question: You are given an array having N integers. Find the absolute difference in sums of even numbers and odd numbers in the array.The first line of the input contains a single integer N.
The second line of the input contains N space seperated integers.

Constraints:
1 <= N <= 10<sup>5</sup>
1 <= A<sub>i</sub> <= 10<sup>9</sup>Print the absolute difference in sums of even numbers and odd numbers in the array.Sample Input:
5
3 4 6 9 7

Sample Output:
9, I have written this Solution Code: n=int(input())
arr=list(map(int,input().split()))
a=list(filter(lambda x:  x%2==0,arr))

b=list(filter(lambda x:  x%2!=0,arr))
print(abs(sum(a)-sum(b))), In this Programming Language: Python, Now tell me if this Code is compilable or not?