For this Question: Given a series and an integer N, your task is to print the sum of it's first N terms.

Series:- 3, 5, 9, 17, 33.<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>SeriesSum()</b> that takes the integer N as parameter.

<b>Constraints:</b>
1 <= N <= 20Return the sum of N terms.Sample Input:-
3

Sample Output:-
17

Sample Input:-
2

Sample Output:-
8, I have written this Solution Code: def SeriesSum(N):
    n=1
    res=3
    ans=3
    for i in range (1,N):
        n=n*2
        res=res+n
        ans=ans+res
    return ans
    
    
, In this Programming Language: Python, Now tell me if this Code is compilable or not?