For this Question: Sara selects two different numbers from the range 1 to 50 and noted their sum as N. However later she Forgets which numbers she selected and now wants to know the total number of possible combinations she can have.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>forgottenNumbers()</b> that takes integer N argument.

Constraints:-
3 <= N <= 99Return the total number of choices Sara has.Sample Input:-
8

Sample Output:-
3

Explanation:-
(1, 7), (2, 6), (3, 5)

Sample Input:-
3

Sample Output:-
1, I have written this Solution Code: def forgottenNumbers(N):
    ans = 0
    for i in range (1,51):
        for j in range (1,51):
            if i != j and i+j==N:
                ans=ans+1
    return ans//2
    , In this Programming Language: Python, Now tell me if this Code is compilable or not?