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.

Constraints:-
1 < = N < = 100000
1 < = elements < = 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: n=int(input())
total=0
for i in range(n+1):
    total+=i
lesser=input().split()
for i in range(len(lesser)):
    lesser[i]=int(lesser[i])
doa=sum(lesser)
print(total-doa), In this Programming Language: Python, Now tell me if this Code is compilable or not?