Sum of internal angles of a Polygon | Function to return the sum of internal angles of an n - sided polygon ; Driver code
def sumOfInternalAngles ( n ) : NEW_LINE INDENT if ( n < 3 ) : NEW_LINE INDENT return 0 NEW_LINE DEDENT return ( ( n - 2 ) * 180 ) NEW_LINE DEDENT n = 5 NEW_LINE print ( sumOfInternalAngles ( n ) ) NEW_LINE