Find sum of even index binomial coefficients | Python program to find sum even indexed Binomial Coefficient ; Returns value of even indexed Binomial Coefficient Sum which is 2 raised to power n - 1. ; Driver method
import math NEW_LINE def evenbinomialCoeffSum ( n ) : NEW_LINE INDENT return ( 1 << ( n - 1 ) ) NEW_LINE DEDENT if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT n = 4 NEW_LINE print evenbinomialCoeffSum ( n ) NEW_LINE DEDENT