Function to find power of a number .
def power ( a , b ) : NEW_LINE INDENT result = 1 ; NEW_LINE while ( b > 0 ) : NEW_LINE INDENT if ( b % 2 == 1 ) : NEW_LINE INDENT result = result * a ; NEW_LINE DEDENT a = a * a ; NEW_LINE b = b // 2 ; NEW_LINE DEDENT return result ; NEW_LINE DEDENT