For this Question: Mohit has an array of N integers containing all elements from 1 to N, somehow he lost one element from the array.
Given N-1 elements your task is to find the missing one.The first line of input contains a single integer N, the next line contains N-1 space-separated integers.

<b>Constraints:-</b>
1 &le; N &le; 1000
1 &le; elements &le; NPrint the missing elementSample Input:-
3
3 1

Sample Output:
2

Sample Input:-
5
1 4 5 2

Sample Output:-
3, I have written this Solution Code: def getMissingNo(arr, n):
    total = (n+1)*(n)//2
    sum_of_A = sum(arr)
    return total - sum_of_A
 


N = int(input())
arr = list(map(int,input().split()))
one = getMissingNo(arr,N)
print(one), In this Programming Language: Python, Now tell me if this Code is compilable or not?