Python3 program to count ways to divide a string in two parts a and b such that b / pow ( 10 , p ) == a
def calculate ( N ) : NEW_LINE INDENT length = len ( N ) NEW_LINE l = int ( ( length ) / 2 ) NEW_LINE count = 0 NEW_LINE for i in range ( l + 1 ) : NEW_LINE DEDENT