For this Question: Given a binary array of size N. Count number of 1's and 0's in the array.First line contains n.
Next line contains n space separated integers.

<b>Constraints</b>
1 <= N <= 10<sup>5</sup>
0 <= arr[i] <= 1Print two integers, count of 1s and count of 0s.Input:
5
0 1 1 0 1

Output:
3 2, I have written this Solution Code: n=int(input())
arr= input().split()
one=zero=0
for i in range(0, n):
    if arr[i]=='1':
        one+=1
    else:
        zero+=1
print(one, zero), In this Programming Language: Python, Now tell me if this Code is compilable or not?