For this Question: Given an array of N integers, your task is to calculate the sum of all the odd integers present in the array.First line of input contains a single integer N. The next line contains the N space separated integers.

Constraints:-
1 < = N < = 1000
1 < = Arr[i] < = 10000Print the sum of all the odd integers present in the array.Sample Input:-
4
1 2 3 4

Sample Output:-
4

Sample Input:-
2 4 6 8

Sample Output:-
0, I have written this Solution Code: n = int(input())
num = input().split(" ")
sums=0
for i in range(0,n):
	if int(num[i])%2 != 0:
		sums = sums + int(num[i])
	
print(sums), In this Programming Language: Python, Now tell me if this Code is compilable or not?